1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-15 16:29:15 -04:00
ports/net-mgmt/pnp/files/patch-share_pnp_application_models_auth.php
Lars Engels 18ee779f87 net-mgmt/pnp:
- Add patches from Check_MK that workaround missing sizeof() function in PHP 7.x
- Bump PORTREVSION
2019-01-16 13:37:50 +00:00

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));
}