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
This commit is contained in:
Clemens Schwaighofer
2016-01-07 12:44:05 +09:00
parent 86cd04f862
commit 805330638a
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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 <b>%s</b> Field!<br>"), $this->table_array[$key]["output_name"]);
break;