Переглянути джерело

Make sure its an int

Signed-off-by: Suki <[email protected]>
Suki 10 роки тому
батько
коміт
d2a05db043
1 змінених файлів з 4 додано та 1 видалено
  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.