phpcs
This commit is contained in:
parent
fa34a91873
commit
f2bfdb318e
1 changed files with 3 additions and 2 deletions
|
|
@ -489,9 +489,10 @@ if (empty($reshook)) {
|
|||
if ($origin && $originid) {
|
||||
// Parse element/subelement (ex: project_task)
|
||||
$element = $subelement = $origin;
|
||||
$regs = array();
|
||||
if (preg_match('/^([^_]+)_([^_]+)/i', $origin, $regs)) {
|
||||
$element = $regs [1];
|
||||
$subelement = $regs [2];
|
||||
$element = $regs[1];
|
||||
$subelement = $regs[2];
|
||||
}
|
||||
|
||||
// For compatibility
|
||||
|
|
|
|||
Loading…
Reference in a new issue