I'm using this (userid={{user::id}} OR userid=0) in Catalog list - condition, to filter items of member on his "profile page". But i've noticed that when you are on profile page and you try to logout you get an error.
Code:
PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR userid=0)' at line 1 (SELECT id,pid,sorting,tstamp,ime,starost,kraj,horoskop,omeni,slika,userid, (SELECT name FROM tl_catalog_types WHERE tl_catalog_types.id=profili.pid) AS catalog_name, (SELECT jumpTo FROM tl_catalog_types WHERE tl_catalog_types.id=profili.pid) AS parentJumpTo FROM profili WHERE pid='1' AND (userid= OR userid=0))' thrown in C:\wamp\www\avanture.mobi\system\libraries\Database.php on line 677
Any clue how to solve this or to set the redirection on logout?
Bookmarks