From 35c1a6ed88a7f8e2466e3ffc83144969b36f3485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Fri, 8 Nov 2019 20:57:08 +0100 Subject: fix da se zadeva pri fetchsporocilo pokaze --- main.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.php') diff --git a/main.php b/main.php index fc8bff8..c7c4866 100644 --- a/main.php +++ b/main.php @@ -54,7 +54,7 @@ Errors: class gimsisextClient { private $username; private $password; - public $version = array(0, 7, 2); + public $version = array(0, 7, 3); private $programname = "gimsisextclient"; private $programdomain = 'gimsisextclient.gimb.tk'; private $cookiedir; // set at runtime, ker je get_curerent_user, v login() @@ -518,10 +518,10 @@ Errors: if ($tn->getAttribute("id") == "ctl00_ContentPlaceHolder1_gvwSporociloVrsta") { $msg = array(); foreach ($tn->getElementsByTagName("tbody")[0]->getElementsByTagName("td") as $dn) { - foreach($dn->getElementsByTagName('span') as $sn) { + foreach($dn->getElementsByTagName('div') as $sn) { switch($sn->getAttribute("class")) { case "msgSubjectS": - $msg['zadeva'] = DOMinnerHTML($sn); + $msg['zadeva'] = str_replace("\n", null, str_replace("\r", null, str_replace(" ", null, DOMinnerHTML($sn)))); break; } } -- cgit v1.2.3