Explorar o código

Fixed arguments setter (really now).

Taddeus Kroes %!s(int64=14) %!d(string=hai) anos
pai
achega
2f4f7391c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pquery.php

+ 1 - 1
pquery.php

@@ -216,8 +216,8 @@ class pQuery {
 			return self::error('Plugin "%s" does not exist.', $plugin);
 			return self::error('Plugin "%s" does not exist.', $plugin);
 		
 		
 		$obj = new $class_name();
 		$obj = new $class_name();
+		$obj->arguments = array_slice($args, 1);
 		$obj->set_variable(array_shift($args));
 		$obj->set_variable(array_shift($args));
-		$obj->arguments = $args;
 		
 		
 		return $obj;
 		return $obj;
 	}
 	}