Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function __construct() { |
||
15 | global $ID; |
||
16 | parent::__construct(); |
||
17 | |||
18 | $parent = tpl_getparent($ID); |
||
19 | if(!$parent) { |
||
|
|||
20 | throw new \RuntimeException("No parent for back action"); |
||
21 | } |
||
22 | |||
23 | $this->id = $parent; |
||
24 | $this->params = array('do' => ''); |
||
25 | $this->accesskey = 'b'; |
||
26 | } |
||
27 | |||
29 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: