I tried both way as below and replacing // instead of + but the error is same
PHP Code:
<?php
/** We urlencoded the whole search string so we need to
* urldecode and convert it back to utf-8
*/
+ $id = $id === 0 ? '' : utf8_encode(urldecode($id));
+
if ($id != '' && !strstr($id, '|'))
{
$keywords = $db->real_escape_string(trim($id));
}
I'm not a coder and I couldn't catch the coder who created this. Any help will be highly apreciated.