Keyword

K2ModelItem bug

  • Damir Ugrin
  • Damir Ugrin's Avatar Topic Author
  • Offline
  • New Member
More
8 years 4 months ago #154401 by Damir Ugrin
K2ModelItem bug was created by Damir Ugrin
Hi,

I was forced to change following code

$files === 0 to

$files == 0

in save method on an OVH hosted site as seems that $files is not an integer.

PHP version is 5.6.20 and WebServer to PHP Interface is fpm-fcgi. I think that problem is in fpm-fcgi, not sure 100%.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154413 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2ModelItem bug
Hello,

The code is correct according to PHP's manual (the === check).
In some PHP versions and setups $files can be a string.

Since we have no control over the environment we have changed several checks like this in the DEV version.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum