// Merge -> revision 9124

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9125 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-10-07 09:54:43 +00:00
parent 38a23cf978
commit 14542fea44
56 changed files with 1682 additions and 1656 deletions
+4 -2
View File
@@ -138,9 +138,11 @@ class ProductComment extends ObjectModel
.($last ? 'LIMIT 1' : '')
);
if ($last)
if (!$results)
return false;
elseif ($last)
return array_shift($results);
else
return $results;
}