mirror of
https://git.freebsd.org/ports.git
synced 2025-07-15 16:29:15 -04:00
- Add patches from Check_MK that workaround missing sizeof() function in PHP 7.x - Bump PORTREVSION
15 lines
402 B
PHP
15 lines
402 B
PHP
--- share/pnp/application/models/auth.php.orig 2017-08-21 15:52:37 UTC
|
|
+++ share/pnp/application/models/auth.php
|
|
@@ -116,11 +116,7 @@ class Auth_Model extends System_Model {
|
|
$result = $this->queryLivestatus($query);
|
|
}
|
|
|
|
- if(sizeof($result) > 0){
|
|
- return TRUE;
|
|
- }else{
|
|
- return FALSE;
|
|
- }
|
|
+ return (!empty($result));
|
|
}
|
|
|
|
|