Index: branches/5.2.x/units/helpers/post_helper.php =================================================================== diff -u -N -r14252 -r14701 --- branches/5.2.x/units/helpers/post_helper.php (.../post_helper.php) (revision 14252) +++ branches/5.2.x/units/helpers/post_helper.php (.../post_helper.php) (revision 14701) @@ -1,6 +1,6 @@ Application->getUnitOption('c', 'IDField'); - $table_name = $this->Application->getUnitOption('c', 'TableName'); + $id_field = $this->Application->getUnitOption('c', 'IDField'); + $table_name = $this->Application->getUnitOption('c', 'TableName'); - $sql = 'SELECT ParentPath - FROM '.$table_name.' - WHERE '.$id_field.' = '.$category_id; - $parent_path = $this->Conn->GetOne($sql); + $sql = 'SELECT ParentPath + FROM ' . $table_name . ' + WHERE ' . $id_field . ' = ' . $category_id; + $parent_path = $this->Conn->GetOne($sql); - $parent_categories = explode('|', substr($parent_path, 1, -1)); - if (!$parent_categories) { - return false; - } + $parent_categories = explode('|', substr($parent_path, 1, -1)); + if ( !$parent_categories ) { + return; + } - $fields_hash = Array ( - $field_name => $field_value, - ); + $fields_hash = Array ($field_name => $field_value); - $this->Conn->doUpdate($fields_hash, $table_name, $id_field.' IN ('.implode(',', $parent_categories).')'); + $this->Conn->doUpdate($fields_hash, $table_name, $id_field . ' IN (' . implode(',', $parent_categories) . ')'); } /** @@ -118,7 +116,7 @@ $date_now = adodb_date('Y-m-d'); if (adodb_date('Y-m-d', $post_date) != $date_now) { - return ; + return true; } // last post update date was today or not Index: branches/5.2.x/install/prerequisites.php =================================================================== diff -u -N -r14252 -r14701 --- branches/5.2.x/install/prerequisites.php (.../prerequisites.php) (revision 14252) +++ branches/5.2.x/install/prerequisites.php (.../prerequisites.php) (revision 14701) @@ -1,6 +1,6 @@