3 ms·
This looks weird in search.php (line 89): if($user 0 && !is_unregistered($user)) { return $user; }
by alecsmart1 13y ago
This looks weird in search.php (line 89):
if($user 0 && !is_unregistered($user)) { return $user; }
- RossM 13y agoThis is either a syntax error or a HipHop idiosyncrasy (was HHVM in use in 2007?) $ php -r '$user = null; if ($user 0) { echo $user; }' PHP Parse error: syntax error, unexpected '0' (T_LNUMBER) in Command line code on line 1
- vezzy-fnord 13y agoI don't think even HPHPc was around in 2007. Development didn't begin until 2008, IIRC.
- TazeTSchnitzel 13y agoI'd hazard a guess that should be: $user <> 0 Which, of course, would not display if someone had originally pasted this code straight into an HTML page without escaping it. EDIT: Looks like it would show up. I wonder, then, if the <>s has been stripped. Some poorly written websites do that.
- deleted 13y ago[deleted]