Skip to content

Commit

Permalink
Merge pull request #791 from jeromegamez/ezimagemanager_reference
Browse files Browse the repository at this point in the history
EZP-21773: Make sure that image reference is false if ini setting 'Reference' is empty
  • Loading branch information
yannickroger committed Nov 26, 2013
2 parents a2979f1 + e01c72e commit 288f1b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ezimage/classes/ezimagemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,10 @@ function createAliasFromINI( $iniGroup )
$alias['filters'] = $filters;
}
if ( $ini->hasVariable( $iniGroup, 'Reference' ) )
$alias['reference'] = $ini->variable( $iniGroup, 'Reference' );
{
$alias['reference'] = trim( $ini->variable( $iniGroup, 'Reference' ) );
$alias['reference'] = ( $alias['reference'] !== '' ) ? $alias['reference'] : false;
}
return $alias;
}

Expand Down

0 comments on commit 288f1b8

Please sign in to comment.