WebsiteBaker Support (2.8.x) > Bakery Shop
Bug in stock.php?
(1/1)
ICE:
Hello, maybe, i found a bug in stock.php.
If i try to sort items in stock administration, following error appears:
--- Quote ---Call to a member function numRows() on null in /modules/bakery/stock.php on line 111
--- End quote ---
So i searched in older versions of bakery and i found a solution:
In version 1.82 the line 47 in stock.php looks like this:
--- Quote ---!empty($clause = $category) ? " AND section_id = $category" : '';
--- End quote ---
In older versions from bakery, line 47 in stock.php looks like this:
--- Quote ---$clause = $category != '' ? " AND section_id = $category" : '';
--- End quote ---
When i remove "!empty" the sorting works fine ... What was the intention to add the "!empty" to this line?
freeSbee:
Bakery v1.82, stock.php line 47 should be:
--- Code: ---$clause = !empty($category) ? " AND section_id = $category" : '';
--- End code ---
Thanks for reporting!
ICE:
Thanks for your quick respond and fix!
Navigation
[0] Message Index
Go to full version