diff options
| author | Lester Caine ext:(%22) <lester@lsces.co.uk> | 2012-04-29 22:03:03 +0100 |
|---|---|---|
| committer | Lester Caine ext:(%22) <lester@lsces.co.uk> | 2012-04-29 22:03:03 +0100 |
| commit | 83ee2ff5e432120993b08704817553245e8ac13b (patch) | |
| tree | 8bfad9364ffbb39ae8920446ae1f0ffec10fce37 /edit.php | |
| parent | b74dc03ddf87856b8957b2f9de9a604c84d0437d (diff) | |
| download | articles-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.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ) ); |
