K kick Well-known member Sep 11, 2017 #1 How can I add a condition to users with IDs 1 and 2. This section of code does not work PHP: $user = $this->em()->find('XF:User', $this->filter('user_id', 'uint')); if($user['user_id'] == 1) { return $this->error(\XF::phrase('no_ip_information_available')); }
How can I add a condition to users with IDs 1 and 2. This section of code does not work PHP: $user = $this->em()->find('XF:User', $this->filter('user_id', 'uint')); if($user['user_id'] == 1) { return $this->error(\XF::phrase('no_ip_information_available')); }