Skip to content

Commit

Permalink
Fix EZP-23257: fatal error when instantiating a "related object" surv…
Browse files Browse the repository at this point in the history
…ey question from cli / rest context

(cherry picked from commit 1d5fb6d)
  • Loading branch information
gggeek authored and andrerom committed Aug 25, 2014
1 parent 11939c5 commit 1d1093d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/survey/classes/ezsurveyrelatedobject.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function eZSurveyRelatedObject( $row = false )
// $http->removeSessionVariable( 'RedirectURIAfterPublish' );
// $http->removeSessionVariable( 'RedirectIfDiscarded' );

if ( $module->exitStatus() !== eZModule::STATUS_REDIRECT )
if ( $module && $module->exitStatus() !== eZModule::STATUS_REDIRECT )
{
if ( $http->hasSessionVariable( 'LastAccessesURI_Backup_' . $contentObjectID . '_' . $this->ID ) and
$http->sessionVariable( 'LastAccessesURI_Backup_' . $contentObjectID . '_' . $this->ID ) !== null )
Expand Down

0 comments on commit 1d1093d

Please sign in to comment.