Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing error where php version is <= 5.2.0

  • Loading branch information...
commit b379b1a2d5f86013ba64533aefc86704cd211cac 1 parent 3b35895
@kieranmasterton kieranmasterton authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/WpAdmin.php
View
6 lib/WpAdmin.php
@@ -72,15 +72,15 @@ public static function exec($args)
// Decide how to call the class / method.
switch($method){
case 'add':
- eval("\$object = \$class::add(self::\$_params);");
+ eval("\$object = " . $class . "::add(self::\$_params);");
break;
case 'list':
- eval("\$object = \$class::listAll(self::\$_params);");
+ eval("\$object = " . $class . "::listAll(self::\$_params);");
break;
default:
// Does the class and method requested exist?
if(method_exists($class, $method)){
- eval("$object = \$class::load(self::\$_params['primary']);");
+ eval("$object = " . $class . "::load(self::\$_params['primary']);");
$object->$method(self::$_params);
}else{
// Else class / method not found, display help.
Please sign in to comment.
Something went wrong with that request. Please try again.