projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9213b4
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Fri, 22 Jun 2018 04:33:53 +0000
(12:33 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 22 Jun 2018 04:33:53 +0000
(12:33 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
5e907c2
..
e091cde
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-108,9
+108,11
@@
class Pman_Core_UpdateDatabase extends Pman
require_once $fd;
$cls = new ReflectionClass('Pman_'. $m . '_UpdateDatabase');
-
- $ret = array_merge($ret, $cls->getStaticPropertyValue('cli_opts'));
-
+ $ar = $cls->getStaticProperties();
+ if (isset($ar['cli_opts'])) {
+
+ $ret = array_merge($ret, $cls->getStaticPropertyValue('cli_opts'));
+ }
}