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:
@@ -523,7 +523,8 @@
|
|||||||
// msg -> optional message
|
// msg -> optional message
|
||||||
// RETURN none
|
// RETURN none
|
||||||
// DESC if error_id set, writes long error string into error_msg
|
// 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();
|
$where_called = $this->get_caller_method();
|
||||||
if ($cursor)
|
if ($cursor)
|
||||||
|
|||||||
@@ -933,7 +933,6 @@
|
|||||||
// this one also allows @ and .
|
// this one also allows @ and .
|
||||||
case "alphanumericextended":
|
case "alphanumericextended":
|
||||||
//$this->debug('edit', 'IN Alphanumeric');
|
//$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"]))
|
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"]);
|
$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;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user