Fixes by Thomas CASTELLE
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 11 Jan 2003 12:49:22 +0000 (12:49 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 11 Jan 2003 12:49:22 +0000 (12:49 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4410 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/calendar/event_edit.php
plugins/calendar/functions.php

index c959140..e96abba 100644 (file)
@@ -140,14 +140,14 @@ function show_event_form() {
          html_tag( 'td', _("Length:"), 'right', $color[4] ) . "\n" .
          html_tag( 'td', '', 'left', $color[4] ) .
          "      <SELECT NAME=\"event_length\">\n";
-    select_option_length($tmparray[length]);
+    select_option_length($tmparray['length']);
     echo "      </SELECT>\n".
          "      </td></tr>\n".
          html_tag( 'tr' ) .
          html_tag( 'td', _("Priority:"), 'right', $color[4] ) . "\n" .
          html_tag( 'td', '', 'left', $color[4] ) .
          "      <SELECT NAME=\"event_priority\">\n";
-    select_option_priority($tmparray[priority]);
+    select_option_priority($tmparray['priority']);
     echo "      </SELECT>\n".
          "      </td></tr>\n".
          html_tag( 'tr' ) .
index cb67b6d..6b64683 100644 (file)
@@ -51,10 +51,10 @@ function select_option_length($selected) {
     );
 
     while( $bar = each($eventlength)) {
-        if($selected==$bar[key]){
-                echo "        <OPTION VALUE=\"".$bar[key]."\" SELECTED>".$bar[value]."</OPTION>\n";
+        if($selected==$bar['key']){
+                echo "        <OPTION VALUE=\"".$bar['key']."\" SELECTED>".$bar['value']."</OPTION>\n";
         } else {
-                echo "        <OPTION VALUE=\"".$bar[key]."\">".$bar[value]."</OPTION>\n";
+                echo "        <OPTION VALUE=\"".$bar['key']."\">".$bar['value']."</OPTION>\n";
         }
     }
 }
@@ -76,10 +76,10 @@ function select_option_minute($selected) {
     );
 
     while ( $bar = each($eventminute)) {
-        if ($selected==$bar[key]){
-                echo "        <OPTION VALUE=\"".$bar[key]."\" SELECTED>".$bar[value]."</OPTION>\n";
+        if ($selected==$bar['key']){
+                echo "        <OPTION VALUE=\"".$bar['key']."\" SELECTED>".$bar['value']."</OPTION>\n";
         } else {
-                echo "        <OPTION VALUE=\"".$bar[key]."\">".$bar[value]."</OPTION>\n";
+                echo "        <OPTION VALUE=\"".$bar['key']."\">".$bar['value']."</OPTION>\n";
         }
     }
 }
@@ -103,10 +103,10 @@ function select_option_priority($selected) {
     );
 
     while( $bar = each($eventpriority)) {
-        if($selected==$bar[key]){
-                echo "        <OPTION VALUE=\"".$bar[key]."\" SELECTED>".$bar[value]."</OPTION>\n";
+        if($selected==$bar['key']){
+                echo "        <OPTION VALUE=\"".$bar['key']."\" SELECTED>".$bar['value']."</OPTION>\n";
         } else {
-                echo "        <OPTION VALUE=\"".$bar[key]."\">".$bar[value]."</OPTION>\n";
+                echo "        <OPTION VALUE=\"".$bar['key']."\">".$bar['value']."</OPTION>\n";
         }
     }
 }