mirror of
https://github.com/e107inc/e107.git
synced 2025-04-15 10:02:02 +02:00
Issue #2078
This commit is contained in:
parent
0fda16e713
commit
bed4336571
@ -1877,7 +1877,7 @@ class e_db_mysql
|
||||
|
||||
/**
|
||||
* Check for the existence of a matching language table when multi-language tables are active.
|
||||
* @param string $table Name of table, without the prefix. or an array of table names.
|
||||
* @param string|array $table Name of table, without the prefix. or an array of table names.
|
||||
* @access private
|
||||
* @return mixed the name of the language table (eg. lan_french_news) or an array of all matching language tables. (with mprefix)
|
||||
*/
|
||||
|
@ -105,7 +105,7 @@ class submitNews
|
||||
}
|
||||
|
||||
// ==== Process File Upload ====
|
||||
if (FILE_UPLOADS && !empty($_FILES['file_userfile']) && vartrue($pref['subnews_attach']) && vartrue($pref['upload_enabled']) && check_class($pref['upload_class']))
|
||||
if (FILE_UPLOADS && !empty($_FILES['file_userfile']['name'][0]) && vartrue($pref['subnews_attach']) && vartrue($pref['upload_enabled']) && check_class($pref['upload_class']))
|
||||
{
|
||||
$uploaded = e107::getFile()->getUploaded(e_UPLOAD, 'unique', array('file_mask' => 'jpg,gif,png', 'max_file_count' => 3));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user