X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fsimple_crud_class.inc;h=9ab24aa5ddb4dcc3204017e16b7fb44c82ff1298;hb=171fccc957f046c4c92089b20a250aa50760b849;hp=f276c3b5a9e36f614cb0c0654c37f6129559d687;hpb=b2b7e20b9372fc8fc002d8cf25f1d3c72917ea4f;p=fa-stable.git diff --git a/includes/ui/simple_crud_class.inc b/includes/ui/simple_crud_class.inc index f276c3b5..9ab24aa5 100644 --- a/includes/ui/simple_crud_class.inc +++ b/includes/ui/simple_crud_class.inc @@ -251,8 +251,8 @@ class simple_crud { $name = $fmt; $fmt = array(); } - if is_string($fmt) { - $fmt = array('fmt' => $fmt) + if (is_string($fmt)) { + $fmt = array('fmt' => $fmt); } $post = isset($fmt['post']) ? $fmt['post'] : $name; $fld = isset($fmt['fld']) ? $fmt['fld'] : $name; @@ -273,8 +273,8 @@ class simple_crud { $name = $fmt; $fmt = array(); } - if is_string($fmt) { - $fmt = array('fmt' => $fmt) + if (is_string($fmt)) { + $fmt = array('fmt' => $fmt); } $post = isset($fmt['post']) ? $fmt['post'] : $name; $fld = isset($fmt['fld']) ? $fmt['fld'] : $name;