summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-04-21 15:18:42 +0000
committerChristian Fowler <spider@viovio.com>2006-04-21 15:18:42 +0000
commitd81ace63a9692b43ba174df315163f9632270b5e (patch)
treefac02ed9fe1860ef366f9d66b7a0d44f252df663 /edit.php
parent30057fabbf0a50bb589008bfa4db0584ae221875 (diff)
downloadarticles-d81ace63a9692b43ba174df315163f9632270b5e.tar.gz
articles-d81ace63a9692b43ba174df315163f9632270b5e.tar.bz2
articles-d81ace63a9692b43ba174df315163f9632270b5e.zip
add default isOwner value to avoid warning
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index 363d191..01341b3 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_articles/edit.php,v 1.23 2006/04/11 13:03:24 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_articles/edit.php,v 1.24 2006/04/21 15:18:42 spiderr Exp $
* @package article
* @subpackage functions
*/
@@ -26,6 +26,7 @@ $gBitSmarty->assign_by_ref( 'feedback', $feedback = array() );
include_once('lookup_article_inc.php');
+$isOwner = FALSE;
if( $gBitUser->hasPermission('p_articles_admin' ) || $gBitUser->hasPermission( 'p_articles_edit' ) ) {
$isOwner = TRUE;
} elseif( !empty($gContent->mInfo['user_id'] ) && $gContent->mInfo['user_id'] == $gBitUser->mUserId ) {