BUG 6963 Incompatibility with PHP 5.3 when deleting languages
This commit is contained in:
@@ -294,7 +294,7 @@ class Content extends BaseContent {
|
|||||||
while ( is_array ( $row ) ) {
|
while ( is_array ( $row ) ) {
|
||||||
$content = ContentPeer::retrieveByPK( $row['CON_CATEGORY'], '', $row['CON_ID'], $lanId);
|
$content = ContentPeer::retrieveByPK( $row['CON_CATEGORY'], '', $row['CON_ID'], $lanId);
|
||||||
|
|
||||||
if( get_class($content) == 'Content' )
|
if( $content !== null )
|
||||||
$content->delete();
|
$content->delete();
|
||||||
|
|
||||||
$result->next ();
|
$result->next ();
|
||||||
|
|||||||
Reference in New Issue
Block a user