Procházet zdrojové kódy

Minor fix to api_failureList call

Yannick Warnier před 12 roky
rodič
revize
8cacae791c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      main/admin/user_add.php

+ 1 - 1
main/admin/user_add.php

@@ -378,7 +378,7 @@ if( $form->validate()) {
 			//If any error ocurred during user creation, print it (api_failureList 
 			//If any error ocurred during user creation, print it (api_failureList 
 			// stores values as separate words, so rework it
 			// stores values as separate words, so rework it
 			$message = '';
 			$message = '';
-			$message_bits = explode(' ',array_pop($api_failureList));
+			$message_bits = explode(' ',api_get_last_failure());
 			foreach ($message_bits as $bit) {
 			foreach ($message_bits as $bit) {
 				$message .= ucfirst($bit);
 				$message .= ucfirst($bit);
 			}
 			}