Форуми / Cotonti / Support / Error in plugin userimages

Macik
#39904 12.09.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

Відредаговано: Macik (12.09.2014 08:46, 9 років тому)