X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_nodes_by_parent.php;h=9fb36599c53b0720cab628d2dc42ecebcb6e6d81;hb=d9b4dfbcb3d920445869db2c3abd706ee6916286;hp=3bb895eea5b73e387913d60dc6c2347216e415b7;hpb=5bd150af8a328f1a3aebfe05c2535da7bbed7667;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_nodes_by_parent.php b/wwwroot/inc/smarty/node_methodz/function.get_nodes_by_parent.php index 3bb895e..9fb3659 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_nodes_by_parent.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_nodes_by_parent.php @@ -46,7 +46,7 @@ function smarty_function_get_nodes_by_parent($params,&$smarty) { $q.=$sql_type; } - if ($orderby) $q.=" order by $orderby "; + if (isset($orderby)) $q.=" order by $orderby "; else $q.=" order by nodes.node_id desc "; $q.= " LIMIT $offset,$listing_amount "; $set=$db->query($q);