Forums / Cotonti / Support / Error in plugin userimages

SergeySt
#39908 2014-09-12 10:18
#39904 Macik:

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);

 

Your code also helped. Thanks a lot.

Added 3 minutes later:

#39907 Macik:

Already fixed on GitHub repo.

Cool! Thank a lot again!