From d2d2a9b73a0f44eea9651ea490ca29c000b0383a Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 4 Aug 2015 12:37:35 +0100 Subject: [PATCH] try checking for property of object rather than class? --- core/basethemelet.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/basethemelet.class.php b/core/basethemelet.class.php index 2996200c..1f63525c 100644 --- a/core/basethemelet.class.php +++ b/core/basethemelet.class.php @@ -66,8 +66,8 @@ class BaseThemelet { $custom_classes = ""; if(class_exists("Relationships")){ - if(property_exists('Image', 'parent_id') && $image->parent_id !== NULL){ $custom_classes .= "shm-thumb-has_parent "; } - if(property_exists('Image', 'has_children') && $image->has_children == TRUE){ $custom_classes .= "shm-thumb-has_child "; } + if(property_exists($image, 'parent_id') && $image->parent_id !== NULL){ $custom_classes .= "shm-thumb-has_parent "; } + if(property_exists($image, 'has_children') && $image->has_children == TRUE){ $custom_classes .= "shm-thumb-has_child "; } } return "".