From ebff9fbb43148dc917ef45b1c8f97912d4f62f11 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 21 Nov 2017 14:47:55 +0100 Subject: [PATCH] fixed php5.5.9 error --- api/api_default.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api_default.php b/api/api_default.php index f0ac462..ae86a49 100644 --- a/api/api_default.php +++ b/api/api_default.php @@ -78,7 +78,7 @@ abstract class api_default extends api_system implements api_default_interface { } //Title if((count($state)>=1) && array_key_exists('title', $state[0])){ - $html->getElementsByTagName('title')[0]->nodeValue = $state[0]['title'];} + $html->getElementsByTagName('title')->item(0)->nodeValue = $state[0]['title'];} //Meta if((count($state)>=1) && array_key_exists('meta', $state[0])){ $meta = $html->getElementsByTagName('meta');//[0]->nodeValue = $state[0]['title'];