@@ 67-69 (lines=3) @@ | ||
64 | if (strpos($expr, "'") === 0) { |
|
65 | $expr = substr($expr, 1); |
|
66 | } |
|
67 | if (strrpos($expr, "'") === strlen($expr) - 1) { |
|
68 | $expr = substr($expr, 0, strlen($expr) - 1); |
|
69 | } |
|
70 | $expr = stripslashes($expr); |
|
71 | ||
72 | $instance->setValue($expr); |
|
@@ 91-93 (lines=3) @@ | ||
88 | } else { |
|
89 | $const->setIsString(false); |
|
90 | } |
|
91 | if (strrpos($expr, "'") === strlen($expr) - 1) { |
|
92 | $expr = substr($expr, 0, -1); |
|
93 | } |
|
94 | $expr = stripslashes($expr); |
|
95 | ||
96 | $const->setValue($expr); |