bug #33563 : error_reporting(-1)

This commit is contained in:
Laurent Destailleur 2011-06-17 19:14:47 +00:00
parent 6f27293a8b
commit a17d7c7ee0
21 changed files with 37 additions and 37 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr> * Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -20,7 +20,7 @@
/** /**
* \file htdocs/boxes.php * \file htdocs/boxes.php
* \brief Fichier de la classe boxes * \brief File of class to manage widget boxes
* \author Rodolphe Qiedeville * \author Rodolphe Qiedeville
* \author Laurent Destailleur * \author Laurent Destailleur
* \version $Id$ * \version $Id$
@ -228,7 +228,7 @@ class InfoBox
} }
include_once($sourcefile); include_once($sourcefile);
$box=new $boxname($db,$obj->note); $box=new $boxname($this->db,$obj->note);
$box->rowid=$obj->rowid; $box->rowid=$obj->rowid;
$box->box_id=$obj->box_id; $box->box_id=$obj->box_id;

View File

@ -148,7 +148,7 @@ class box_actions extends ModeleBoxes {
} }
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -123,7 +123,7 @@ class box_bookmarks extends ModeleBoxes {
} }
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -127,7 +127,7 @@ class box_clients extends ModeleBoxes {
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -136,7 +136,7 @@ class box_commandes extends ModeleBoxes {
} }
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -148,7 +148,7 @@ class box_comptes extends ModeleBoxes {
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -125,7 +125,7 @@ class box_contacts extends ModeleBoxes {
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -145,7 +145,7 @@ class box_contracts extends ModeleBoxes {
} }
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -156,7 +156,7 @@ class box_external_rss extends ModeleBoxes {
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -151,7 +151,7 @@ class box_factures extends ModeleBoxes {
} }
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -145,7 +145,7 @@ class box_factures_fourn extends ModeleBoxes {
} }
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -145,7 +145,7 @@ class box_factures_fourn_imp extends ModeleBoxes {
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -147,7 +147,7 @@ class box_factures_imp extends ModeleBoxes {
} }
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -122,7 +122,7 @@ class box_fournisseurs extends ModeleBoxes {
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -123,7 +123,7 @@ class box_members extends ModeleBoxes {
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -99,7 +99,7 @@ class box_osc_clients extends ModeleBoxes {
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -87,7 +87,7 @@ class box_produits extends ModeleBoxes {
while ($i < $num) while ($i < $num)
{ {
$objp = $db->fetch_object($result); $objp = $db->fetch_object($result);
$datem=$db->jdate($obj->tms); $datem=$db->jdate($objp->tms);
// Multilangs // Multilangs
if ($conf->global->MAIN_MULTILANGS) // si l'option est active if ($conf->global->MAIN_MULTILANGS) // si l'option est active
@ -156,7 +156,7 @@ class box_produits extends ModeleBoxes {
} }
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -141,7 +141,7 @@ class box_propales extends ModeleBoxes {
} }
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -134,7 +134,7 @@ class box_prospect extends ModeleBoxes {
} }
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -161,7 +161,7 @@ class box_services_vendus extends ModeleBoxes {
} }
function showBox() function showBox($head = null, $contents = null)
{ {
parent::showBox($this->info_box_head, $this->info_box_contents); parent::showBox($this->info_box_head, $this->info_box_contents);
} }

View File

@ -205,13 +205,13 @@ class ModeleBoxes
if (! empty($contents[$i][$j]['maxlength'])) $maxlength=$contents[$i][$j]['maxlength']; if (! empty($contents[$i][$j]['maxlength'])) $maxlength=$contents[$i][$j]['maxlength'];
if ($maxlength) $textewithnotags=dol_trunc($textewithnotags,$maxlength); if ($maxlength) $textewithnotags=dol_trunc($textewithnotags,$maxlength);
if (preg_match('/^<img/i',$texte) || $contents[$i][$j]['asis']) print $texte; // show text with no html cleaning if (preg_match('/^<img/i',$texte) || ! empty($contents[$i][$j]['asis'])) print $texte; // show text with no html cleaning
else print $textewithnotags; // show text with html cleaning else print $textewithnotags; // show text with html cleaning
// End Url // End Url
if (! empty($contents[$i][$j]['url'])) print '</a>'; if (! empty($contents[$i][$j]['url'])) print '</a>';
if (preg_match('/^<img/i',$texte2 || $contents[$i][$j]['asis2'])) print $texte2; // show text with no html cleaning if (preg_match('/^<img/i',$texte2) || ! empty($contents[$i][$j]['asis2'])) print $texte2; // show text with no html cleaning
else print $texte2withnotags; // show text with html cleaning else print $texte2withnotags; // show text with html cleaning
print "</td>"; print "</td>";