I tried the following first, which seems the most intuitive thing to do:
if ($obj->request_method != 'post' || $uid < 1)
die();
But had the error:
Parse error: syntax error, unexpected '$uid' (T_VARIABLE)
So I tried this, which fixed that error.
if (($obj->request_method != 'post') || ($uid < 1))
die();
But when I go to another page, where this if is used, I get the following error:
Fatal error: Call to undefined function () in
It is not related to the rest of the code. I'm wondering why simple ifs are failing, is it a sign that I need more sleep?