summaryrefslogtreecommitdiffstats
path: root/system/libraries/Upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Upload.php')
-rw-r--r--system/libraries/Upload.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 4751a850f..82b46f094 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -1078,15 +1078,15 @@ class CI_Upload {
if ( ! is_array($msg))
{
- $msg = array($msg);
- }
-
- foreach ($msg as $val)
- {
- $msg = ($CI->lang->line($val) === FALSE) ? $val : $CI->lang->line($val);
- $this->error_msg[] = $msg;
- log_message('error', $msg);
- }
+ $msg = array($msg);
+ }
+
+ foreach ($msg as $val)
+ {
+ $msg = ($CI->lang->line($val) === FALSE) ? $val : $CI->lang->line($val);
+ $this->error_msg[] = $msg;
+ log_message('error', $msg);
+ }
}
// --------------------------------------------------------------------