BUG 6963 Incompatibility with PHP 5.3 when deleting languages

This commit is contained in:
Alexandre Rosenfeld
2011-05-25 09:20:50 -04:00
parent c19820f14d
commit 9f61fcb951

View File

@@ -294,7 +294,7 @@ class Content extends BaseContent {
while ( is_array ( $row ) ) {
$content = ContentPeer::retrieveByPK( $row['CON_CATEGORY'], '', $row['CON_ID'], $lanId);
if( get_class($content) == 'Content' )
if( $content !== null )
$content->delete();
$result->next ();