From 805330638acf7d8759bb80bfc449a5bcda62ff8d Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 7 Jan 2016 12:44:05 +0900 Subject: [PATCH] Bug fix in DB IO for setting _db_error public _db_error method was private, but was called in DB.Array.IO, so it had to be set public again. removed debug message from Form Generate class --- www/libs/Class.DB.IO.inc | 3 ++- www/libs/Class.Form.Generate.inc | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/libs/Class.DB.IO.inc b/www/libs/Class.DB.IO.inc index 685a85ae..0a962e1c 100644 --- a/www/libs/Class.DB.IO.inc +++ b/www/libs/Class.DB.IO.inc @@ -523,7 +523,8 @@ // msg -> optional message // RETURN none // DESC if error_id set, writes long error string into error_msg - private function _db_error($cursor = '', $msg = '') + // MARK: needed to make public so it can be called from DB.Array.IO too + public function _db_error($cursor = '', $msg = '') { $where_called = $this->get_caller_method(); if ($cursor) diff --git a/www/libs/Class.Form.Generate.inc b/www/libs/Class.Form.Generate.inc index f61fd5fb..01506f4d 100644 --- a/www/libs/Class.Form.Generate.inc +++ b/www/libs/Class.Form.Generate.inc @@ -933,7 +933,6 @@ // this one also allows @ and . case "alphanumericextended": //$this->debug('edit', 'IN Alphanumeric'); - $this->debug('REGEX CHECK', 'ANE: '.$this->table_array[$key]["value"]); if (!preg_match("/^[0-9A-Za-z_\-@\.]+$/", $this->table_array[$key]["value"])) $this->msg .= sprintf($this->l->__("Please enter a valid alphanumeric extended (Numbers, Letters, -, _, @ and . only, no spaces) value for the %s Field!
"), $this->table_array[$key]["output_name"]); break;