From 0fcccb2553cc20f7c67625310ce1aaf7b4a83d3e Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Wed, 3 Feb 2016 04:55:09 +0100 Subject: [PATCH] FIx in imagefield --- src/CoreFields/ImageField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CoreFields/ImageField.php b/src/CoreFields/ImageField.php index f3fc474..50ff50b 100644 --- a/src/CoreFields/ImageField.php +++ b/src/CoreFields/ImageField.php @@ -63,10 +63,10 @@ class ImageField extends PhangoField { //Check the image for delete. //This field is used only for a row - old_reset=Webmodel::$model[$this->name_model]->reset_conditions; + $old_reset=Webmodel::$model[$this->name_model]->reset_conditions; Webmodel::$model[$this->name_model]->reset_conditions=0; $old_image=Webmodel::$model[$this->name_model]->select_a_row_where(array($this->name_component), 1)[$this->name_component]; - Webmodel::$model[$this->name_model]->reset_conditions=old_reset; + Webmodel::$model[$this->name_model]->reset_conditions=$old_reset; }