Index: branches/5.1.x/core/kernel/db/dblist.php =================================================================== diff -u -r12127 -r12657 --- branches/5.1.x/core/kernel/db/dblist.php (.../dblist.php) (revision 12127) +++ branches/5.1.x/core/kernel/db/dblist.php (.../dblist.php) (revision 12657) @@ -1,6 +1,6 @@ Application->isDebugMode() ) - { + if ($this->Application->isDebugMode()) { global $debugger; $debugger->appendTrace(); } + trigger_error('Depricated method kDBList->SetWhereClause. Use kDBList->addFilter instead.', E_USER_ERROR); } @@ -917,8 +919,7 @@ function linkToParent($special) { $parent_prefix = $this->Application->getUnitOption($this->Prefix, 'ParentPrefix'); - if($parent_prefix) - { + if ($parent_prefix) { $parent_table_key = $this->Application->getUnitOption($this->Prefix, 'ParentTableKey'); if (is_array($parent_table_key)) $parent_table_key = getArrayValue($parent_table_key, $parent_prefix); $foreign_key_field = $this->Application->getUnitOption($this->Prefix, 'ForeignKey'); @@ -982,11 +983,12 @@ if ($previous_pseudo) { // don't set more then one error on field - return ; + return false; } $this->Application->StoreVar($var_name, $pseudo); + + return true; } -} -?> \ No newline at end of file +} \ No newline at end of file