mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 20:20:30 -04:00
- Add patches from Check_MK that workaround missing sizeof() function in PHP 7.x - Bump PORTREVSION
11 lines
561 B
PHP
11 lines
561 B
PHP
--- share/pnp/application/controllers/image.php.orig 2017-08-21 15:52:37 UTC
|
|
+++ share/pnp/application/controllers/image.php
|
|
@@ -47,7 +47,7 @@ class Image_Controller extends System_Controller {
|
|
$this->rrdtool->streamImage("ERROR: NOT_AUTHORIZED");
|
|
|
|
#print Kohana::debug($this->data->STRUCT);
|
|
- if(sizeof($this->data->STRUCT) > 0){
|
|
+ if(!empty($this->data->STRUCT)){
|
|
$image = $this->rrdtool->doImage($this->data->STRUCT[0]['RRD_CALL']);
|
|
}else{
|
|
$image = FALSE;
|