Warning removal
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 27 Jul 2001 21:07:04 +0000 (21:07 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 27 Jul 2001 21:07:04 +0000 (21:07 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1454 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/date.php

index 59a10dca4e67860b32f84bf16c314e14789c5c2a..a22fea7eee3df1d540794b888061607e55d5398b 100644 (file)
       //    the 3 times it was getting called by calling the functions
       //    getHour, getMinute, and getSecond.
       //
       //    the 3 times it was getting called by calling the functions
       //    getHour, getMinute, and getSecond.
       //
+      if (! isset($dateParts[1])) $dateParts[1] = '';
+      if (! isset($dateParts[2])) $dateParts[2] = '';
+      if (! isset($dateParts[3])) $dateParts[3] = '';
+      if (! isset($dateParts[4])) $dateParts[4] = '';
+      if (! isset($dateParts[5])) $dateParts[5] = '';
       if (intval(trim($dateParts[0])) > 0) {
          $string = $dateParts[0] . ' ' . $dateParts[1] . ' ' . 
                    $dateParts[2] . ' ' . $dateParts[3];
       if (intval(trim($dateParts[0])) > 0) {
          $string = $dateParts[0] . ' ' . $dateParts[1] . ' ' . 
                    $dateParts[2] . ' ' . $dateParts[3];