From 8166584fc50a0b4fabe85e0683fbad9cf5580421 Mon Sep 17 00:00:00 2001
From: gloas <gloas@afi-sa.fr>
Date: Wed, 18 Apr 2018 15:02:06 +0200
Subject: [PATCH] hotline #74120 fix failure + warning

---
 library/ZendAfi/View/Helper/ComboCodification.php             | 2 +-
 library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/library/ZendAfi/View/Helper/ComboCodification.php b/library/ZendAfi/View/Helper/ComboCodification.php
index feb19a98879..f83532dd0f2 100644
--- a/library/ZendAfi/View/Helper/ComboCodification.php
+++ b/library/ZendAfi/View/Helper/ComboCodification.php
@@ -64,7 +64,7 @@ class ZendAfi_View_Helper_ComboCodification extends ZendAfi_View_Helper_BaseHelp
     $combo = '<select id="' . $id . '" name="' . $name . '"' . $events . ' class="typeDoc">';
 
     foreach ($items as $item) {
-      $selected = $item['value'] === reset($valeur_select) ? ' selected="selected"': '';
+      $selected = $item['value'] == reset($valeur_select) ? ' selected="selected"': '';
       $combo .= '<option value="' . $item["value"] . '"' . $selected.'>' . stripSlashes($item["libelle"]) . '</option>';
     }
     $combo .= '</select>';
diff --git a/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php b/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php
index ed2a892e867..e09d4333627 100644
--- a/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php
+++ b/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php
@@ -19,7 +19,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
  */
 
-class StoryPlayRActivatedTestCase extends AbstractControllerTestCase {
+abstract class StoryPlayRActivatedTestCase extends AbstractControllerTestCase {
   protected
     $_storm_default_to_volatile = true,
     $_user;
-- 
GitLab