From 9f61fcb951409eae6e8df5c0b62722a9ab5ad902 Mon Sep 17 00:00:00 2001 From: Alexandre Rosenfeld Date: Wed, 25 May 2011 09:20:50 -0400 Subject: [PATCH] BUG 6963 Incompatibility with PHP 5.3 when deleting languages --- workflow/engine/classes/model/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/classes/model/Content.php b/workflow/engine/classes/model/Content.php index 12a0944ba..45a8138a5 100644 --- a/workflow/engine/classes/model/Content.php +++ b/workflow/engine/classes/model/Content.php @@ -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 ();