I'm seeing a lot of the following warnings after upgrading to 1.9.3.1 in the system.log
:
"Warning: strpos() expects parameter 1 to be string, array given in ../app/code/core/Mage/Eav/Model/Entity/Attribute/Source/Table.php on line 79"
"Warning: strpos() expects parameter 1 to be string, array given in ../app/code/core/Mage/Eav/Model/Entity/Attribute/Source/Table.php on line 79"
"Warning: strpos() expects parameter 1 to be string, array given in ../app/code/core/Mage/Eav/Model/Entity/Attribute/Source/Table.php on line 79"
Also checked the affected Model already near line 79 it says..
...
70: /**
71: * Get a text for option value
72: *
73: * @param string|integer $value
74: * @return string
75: */
76: public function getOptionText($value)
77: {
78: $isMultiple = false;
79: if (strpos($value, ',')) { # <--- this line causes the warning...
80: $isMultiple = true;
81: $value = explode(',', $value);
82: }
83:
84: $options = $this->getAllOptions(false);
...
Any ideas how to fix this?
$value
by if condition. that should not be blank