pulling designer from movers properly
authorToby Elliott <telliott@mozilla.com>
Wed, 08 Jul 2009 10:27:01 -0700
changeset 1067 c66025aa7998cad0b25780f310b79fdc08d682cc
parent 1066 aa442647fbb32230e1a0f756c7dd4b02bd04011e
child 1068 a3df7dda2e2c8b9a3c1270bfdc326df7a66da6d1
push id684
push usertelliott@mozilla.com
push dateWed, 08 Jul 2009 17:27:19 +0000
pulling designer from movers properly
server/templates/movers.php
--- a/server/templates/movers.php
+++ b/server/templates/movers.php
@@ -5,18 +5,18 @@
 	$list = $db->get_movers(null);
 	$count = 1;
 	
 	$featured_designer_list = explode(":", FEATURED_DESIGNERS);
 	$featured_persona_list = explode(":", FEATURED_PERSONAS);
 	
 	foreach ($list as $persona)
 	{
-		if (array_key_exists($persona['id'], $featured_designer_list) 
-			|| array_key_exists($persona['id'], $featured_persona_list))
+		if (in_array($persona['id'], $featured_designer_list) 
+			|| in_array($persona['id'], $featured_persona_list))
 			continue;
 		
 		$persona_json = htmlentities(json_encode(extract_record_data($persona)));
 ?>
 					<li>
                             <h4><?= $persona['name'] ?></h4>
                             <hr />
                              <a href="/persona/<?= $persona['id'] ?>"><img class="persona" alt="<?= $persona['name'] ?>" persona="<?= $persona_json ?>" src="<?= PERSONAS_LIVE_PREFIX . '/' . url_prefix($persona['id']) ?>/preview_popular.jpg"></a>