Module Category Undefined variable $orderby CategoryTable.php on line 3

28.11.2022 20:09
#1
Aspik
Joomshopping forum user no avatar
Name: Aspik
24.09.2011
Posts: 12
Quote
Module Category Undefined variable $orderby CategoryTable.php on line 3

Hi!
When I switch on sort in Module Category
I have error:
Warning: Undefined variable $orderby in \components\com_jshopping\Table\CategoryTable.php on line 31


Joomla: 4.2.5
JoomShopping: 5.1.1
PHP: 8.1.12
 
28.11.2022 21:31
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 26077
Quote
Aw: Module Category Undefined variable $orderby CategoryTable.php on line 3

\components\com_jshopping\Table\CategoryTable.php

if (!$orderby) $orderby = "ordering";
change:
if (!isset($orderby)) $orderby = "ordering";

 
03.12.2022 17:26
#3
Aspik
Joomshopping forum user no avatar
Name: Aspik
24.09.2011
Posts: 12
Quote
Aw: Module Category Undefined variable $orderby CategoryTable.php on line 3

admin - 28.11.2022 21:31
\components\com_jshopping\Table\CategoryTable.php

if (!$orderby) $orderby = "ordering";
change:
if (!isset($orderby)) $orderby = "ordering";


Спасибо

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.