Happy New Year!
[platal.git] / plugins / function.select_db_table.php
index 80f20a0..ea1a1b3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -57,7 +57,7 @@ function select_options($table, $value, $field, $pad, $where, $join, $group)
 }
 
 function smarty_function_select_db_table($params, &$smarty) {
-    if (empty($params['table']) || empty($params['valeur'])) {
+    if (empty($params['table']) || !array_key_exists('valeur', $params)) {
         return;
     }
     if (empty($params['champ'])) {