Foren / Cotonti / Support / Error in plugin userimages

Macik
#39904 12. September 2014, 08:34

Please, write these data:

  • version of  Cotonti
  • version of plugin
  • version of PHP

Добавлено 12 минуты спустя:

Ok. I had check the code. It happend due to PHP using strict standards. In this case Only variables should be passed by reference.

So you must use temporary variable. Change code as follows:

			$gd_supported = array('jpg', 'jpeg', 'png', 'gif');
			$var = explode(".", $file['name']);
			$file_ext = strtolower(array_pop($var));
			$fcheck = cot_file_check($file['tmp_name'], $file['name'], $file_ext);

 

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F

Dieser Beitrag wurde von Macik (am 12. September 2014, 08:46, vor 9 Jahre) bearbeitet