X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_mail.php;h=587d44d385ac5955b1b8dd3aca8ec9d2c2c303b7;hb=d9b4dfbcb3d920445869db2c3abd706ee6916286;hp=dcf6db71f643fb92ed32500de986692a322bf55e;hpb=94c8f5b3e574715cc692f8a92f8d332e0c55804a;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_mail.php b/wwwroot/inc/smarty/node_methodz/function.get_mail.php index dcf6db7..587d44d 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_mail.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_mail.php @@ -43,7 +43,7 @@ userto.login as mail_to_name, userfrom.login as mail_from_name, mail.* from mail left join users as userfrom on mail_from=userfrom.user_id left join users as userto on mail_to=userto.user_id where mail_user='$user_id' "; - if ($sql_type) $query.=$sql_type; + if (isset($sql_type)) $query.=$sql_type; $query.=" order by mail_id desc limit $offset,$listing_amount"; $set = $db->query($query);