Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4
[platal.git] / templates / search / index.tpl
index b8988b3..bb01587 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2013 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -48,7 +48,7 @@
     <script type="text/javascript">
       // popup automatically if only one result
       $(function() {
-        $('#content a.popup2').click();
+        $('#content a.popup2').first().click();
       });
     </script>
   {/literal}{/if}