Skip to content

Commit

Permalink
Warn on only numeric identifier only in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Jul 11, 2023
1 parent 2c095c4 commit 97f1fad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/AbraFlexi/RO.php
Expand Up @@ -447,7 +447,7 @@ class RO extends \Ease\Sand
*/
public function __construct($init = null, $options = [])
{
$this->urlParams =& $this->urlParamsKnown; //Sync deprecated variable with current TODO: Remove in 2024
$this->urlParams = & $this->urlParamsKnown; //Sync deprecated variable with current TODO: Remove in 2024
$this->init = $init;
parent::setObjectName();
$this->setUp($options);
Expand Down Expand Up @@ -2093,7 +2093,9 @@ public function getRecordIdent()
}
if (empty($ident)) {
$ident = $this->getRecordID();
$this->addStatusMessage('getRecordIdent: No ext: or code: record identificator found', 'warning' );
if ($this->debug && is_numeric($ident)) {
$this->addStatusMessage('getRecordIdent: only numeric record identificator found', 'warning');
}
}
return $ident;
}
Expand Down

0 comments on commit 97f1fad

Please sign in to comment.