[Jaws-commits] r13437 - branches/0.8/html/include/Jaws

afz at jaws-project.com afz at jaws-project.com
Tue Aug 14 08:09:15 UTC 2012


Author: afz
Date: 2012-08-14 08:09:15 +0000 (Tue, 14 Aug 2012)
New Revision: 13437

Modified:
   branches/0.8/html/include/Jaws/Session.php
Log:
Fixed php 5.4 string offset cast notice

Modified: branches/0.8/html/include/Jaws/Session.php
===================================================================
--- branches/0.8/html/include/Jaws/Session.php	2012-08-14 07:35:54 UTC (rev 13436)
+++ branches/0.8/html/include/Jaws/Session.php	2012-08-14 08:09:15 UTC (rev 13437)
@@ -256,7 +256,7 @@
             $logon_hours = $this->GetAttribute('logon_hours');
             if (!empty($logon_hours)) {
                 $wdhour = explode(',', $GLOBALS['app']->UTC2UserTime(time(), 'w,G', true));
-                $lhByte = hexdec($logon_hours{$wdhour[0]*6 + floor($wdhour[1]/4)});
+                $lhByte = hexdec($logon_hours{$wdhour[0]*6 + intval($wdhour[1]/4)});
                 if ((pow(2, fmod($wdhour[1], 4)) & $lhByte) == 0) {
                     $GLOBALS['app']->Session->Logout();
                     Jaws_Error::Fatal('Logon hours terminated');



More information about the Jaws-commits mailing list