From f8261fb8878d7912c6e32fff094db02e2da6f33f Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 28 Mar 2017 12:37:56 +0200 Subject: [PATCH] Remove notice --- library/Metier/sphinx/rechercheFonc.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/library/Metier/sphinx/rechercheFonc.php b/library/Metier/sphinx/rechercheFonc.php index 0bd83216..4b0eacee 100644 --- a/library/Metier/sphinx/rechercheFonc.php +++ b/library/Metier/sphinx/rechercheFonc.php @@ -9,8 +9,7 @@ if (defined('DEBUG') == false) { // --------------------------------------------------------------------------- // // databaseJO // --------------------------------------------------------------------------- // -function databaseJO() -{ +function databaseJO() { $db = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, 'jo'); if (mysqli_connect_error()) { println('Ne peut pas se connecter a la base.'); @@ -23,8 +22,7 @@ function databaseJO() // --------------------------------------------------------------------------- // // println // --------------------------------------------------------------------------- // -function println($ln = '') -{ +function println($ln = '') { print $ln.'
'; } @@ -36,13 +34,8 @@ if (DEBUG) { { print $ln.'
'; } -} elseif (LOCAL) { - function debugln($ln = '') - { - } } else { - function debugln($ln = '') - { + function debugln($ln = '') { /* $fp = fopen(LOG_PATH.'/recherchesDebug.log', 'a'); fwrite($fp, $ln."\n");