// Stock Available : bug fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10408 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -392,7 +392,7 @@ class StockAvailableCore extends ObjectModel
|
||||
* @param int $id_shop Optional : gets context if null @see Context::getContext()
|
||||
* @return bool : depends on stock @see $depends_on_stock
|
||||
*/
|
||||
public function outOfStock($id_product, $id_shop = null)
|
||||
public static function outOfStock($id_product, $id_shop = null)
|
||||
{
|
||||
if (is_null($id_shop))
|
||||
$id_shop = Context::getContext()->shop->getID(true);
|
||||
|
||||
Reference in New Issue
Block a user