diff --git a/Editor/Upload.php b/Editor/Upload.php index b05372d..e77074d 100644 --- a/Editor/Upload.php +++ b/Editor/Upload.php @@ -697,9 +697,9 @@ private function _dbExec($upload, $db) foreach ($pathFields as $column => $type) { if ($type === self::DB_WEB_PATH) { $q->set($column, $webPath); - } else if ($type === self::DB_SYSTEM_PATH) { + } elseif ($type === self::DB_SYSTEM_PATH) { $q->set($column, $path); - } else if (is_string($type)) { + } elseif (is_string($type)) { $q->set($column, str_replace('__ID__', $id, $type)); } else { $q->set($column, $type);