Ver código fonte

Make sure its an int

Signed-off-by: Suki <[email protected]>
Suki 11 anos atrás
pai
commit
d2a05db043
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      Sources/Subs-Themes.php

+ 4 - 1
Sources/Subs-Themes.php

@@ -31,6 +31,9 @@ function get_single_theme($id)
 	if (empty($id))
 		return false;
 
+	// Make user its an int.
+	$id = (int) $id;
+
 	// List of all possible  values.
 	$themeValues = array(
 		'theme_dir',
@@ -48,7 +51,7 @@ function get_single_theme($id)
 	call_integration_hook('integrate_get_single_theme', array(&$themeValues, $id));
 
 	$single = array(
-		'id' => (int) $id,
+		'id' => $id,
 	);
 
 	// Make our known/enable themes a little easier to work with.