Explorar o código

Fix small bug in V class

Piotr Labudda %!s(int64=11) %!d(string=hai) anos
pai
achega
0b1c099157
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SE/se-lib/V.php

+ 1 - 1
SE/se-lib/V.php

@@ -49,7 +49,7 @@ class V {
 			case 'word':
 				if (is_scalar($from)) {
 					$ret = $from;
-					settype($ret, $type);
+					settype($ret, 'string');
 					$ret = trim($ret);
 					if (false !== ($pos = strpos($ret, ' '))) {
 						$ret = substr($ret, 0, $pos);