Permalink
Browse files

Merge pull request #14 from llaumgui/master

language_id isn't mandatory for comment_count why for comment_list
  • Loading branch information...
2 parents c159675 + d54213a commit 31f58421cc57fc4124a2a86769d28819468aa932 @andrerom andrerom committed Apr 12, 2012
@@ -179,7 +179,10 @@ static function fetchByContentObjectID( $contentObjectID, $languageID, $status =
{
$cond = array();
$cond['contentobject_id'] = $contentObjectID;
- $cond['language_id'] = $languageID;
+ if ( $languageID !== false )
+ {
+ $cond['language_id'] = $languageID;
+ }
if( !is_null( $status ) )
{
$cond['status'] = $status;
@@ -306,4 +309,4 @@ static function countContentObjectByEmail( $email, $status = false )
}
-?>
+?>
@@ -22,8 +22,8 @@
),
array( 'name'=> 'language_id',
'type'=> 'integer',
- 'required' => true,
- 'default' => 0
+ 'required' => false,
+ 'default' => false
),
array( 'name'=> 'status',
'type'=>'integer',
@@ -259,4 +259,4 @@
)
)
);
-?>
+?>

0 comments on commit 31f5842

Please sign in to comment.