Fix: dead code

This commit is contained in:
Laurent Destailleur 2014-02-28 22:09:40 +01:00
parent 6662f8b5a3
commit 072bb709ff

View File

@ -165,12 +165,16 @@ print '<center><input type="submit" class="button" value="'.$langs->trans("Save"
print '</form>'; print '</form>';
dol_fiche_end();
print '<br>'; print '<br>';
/* /*
* Notifications * Notifications
*/ */
/* Disable this, there is no trigger with elementtype 'withdraw'
if (! empty($conf->global->MAIN_MODULE_NOTIFICATION)) if (! empty($conf->global->MAIN_MODULE_NOTIFICATION))
{ {
$langs->load("mails"); $langs->load("mails");
@ -242,20 +246,20 @@ if (! empty($conf->global->MAIN_MODULE_NOTIFICATION))
print '</td>'; print '</td>';
print '<td align="right"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td></tr>'; print '<td align="right"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td></tr>';
}
// List of current notifications for objet_type='withdraw'
$sql = "SELECT u.lastname, u.firstname,";
$sql.= " nd.rowid, ad.code, ad.label";
$sql.= " FROM ".MAIN_DB_PREFIX."user as u,";
$sql.= " ".MAIN_DB_PREFIX."notify_def as nd,";
$sql.= " ".MAIN_DB_PREFIX."c_action_trigger as ad";
$sql.= " WHERE u.rowid = nd.fk_user";
$sql.= " AND nd.fk_action = ad.rowid";
$sql.= " AND u.entity IN (0,".$conf->entity.")";
$resql = $db->query($sql); // List of current notifications for objet_type='withdraw'
if ($resql) $sql = "SELECT u.lastname, u.firstname,";
{ $sql.= " nd.rowid, ad.code, ad.label";
$sql.= " FROM ".MAIN_DB_PREFIX."user as u,";
$sql.= " ".MAIN_DB_PREFIX."notify_def as nd,";
$sql.= " ".MAIN_DB_PREFIX."c_action_trigger as ad";
$sql.= " WHERE u.rowid = nd.fk_user";
$sql.= " AND nd.fk_action = ad.rowid";
$sql.= " AND u.entity IN (0,".$conf->entity.")";
$resql = $db->query($sql);
if ($resql)
{
$num = $db->num_rows($resql); $num = $db->num_rows($resql);
$i = 0; $i = 0;
$var = false; $var = false;
@ -273,10 +277,12 @@ if ($resql)
$i++; $i++;
} }
$db->free($resql); $db->free($resql);
} }
print '</table>'; print '</table>';
print '</form>'; print '</form>';
}
*/
$db->close(); $db->close();