Index: branches/RC/core/units/general/helpers/image_helper.php =================================================================== diff -u -N -r10156 -r10369 --- branches/RC/core/units/general/helpers/image_helper.php (.../image_helper.php) (revision 10156) +++ branches/RC/core/units/general/helpers/image_helper.php (.../image_helper.php) (revision 10369) @@ -273,6 +273,10 @@ */ function LoadItemImages(&$object) { + if (!$this->Application->prefixRegistred($object->Prefix.'-img')) { + return ; + } + $max_image_count = $this->Application->ConfigValue($object->Prefix.'_MaxImageCount'); $sql = 'SELECT * @@ -311,6 +315,10 @@ */ function SaveItemImages(&$object) { + if (!$this->Application->prefixRegistred($object->Prefix.'-img')) { + return ; + } + $table_name = $this->Application->getUnitOption('img', 'TableName'); $max_image_count = $this->Application->getUnitOption($object->Prefix, 'ImageCount'); // $this->Application->ConfigValue($object->Prefix.'_MaxImageCount');