summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorLester Caine ext:(%22) <lester@lsces.co.uk>2012-04-29 22:03:03 +0100
committerLester Caine ext:(%22) <lester@lsces.co.uk>2012-04-29 22:03:03 +0100
commit83ee2ff5e432120993b08704817553245e8ac13b (patch)
tree8bfad9364ffbb39ae8920446ae1f0ffec10fce37 /edit.php
parentb74dc03ddf87856b8957b2f9de9a604c84d0437d (diff)
downloadarticles-83ee2ff5e432120993b08704817553245e8ac13b.tar.gz
articles-83ee2ff5e432120993b08704817553245e8ac13b.tar.bz2
articles-83ee2ff5e432120993b08704817553245e8ac13b.zip
Further tidyup on strict warnings
Currently dynamic centre modules are not working, but assume that is a core problem
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index 55a8732..0a1d6e8 100644
--- a/edit.php
+++ b/edit.php
@@ -62,7 +62,7 @@ if( !empty( $_REQUEST['save'] ) ) {
if( empty( $_REQUEST['topic_id'] ) ) $_REQUEST['topic_id'] = 0;
if( $gContent->store( $_REQUEST ) ) {
- if( $gContent->mInfo['status_id'] == ARTICLE_STATUS_PENDING ) {
+ if( isset ($gContent->mInfo['status_id']) and $gContent->mInfo['status_id'] == ARTICLE_STATUS_PENDING ) {
header ( "location: " . ARTICLES_PKG_URL. "index.php?feedback=".urlencode( tra( 'Your article has been submitted and is awaiting approval.' ) ) );
} else {
header ( "location: " . ARTICLES_PKG_URL . ( ($gBitSystem->isFeatureActive('pretty_urls_extended') || $gBitSystem->isFeatureActive('pretty_urls')) ? $gContent->mArticleId : "read.php?article_id=" . $gContent->mArticleId ) );