Removed silly code

This commit is contained in:
Raphaël Doursenaud 2013-09-05 17:25:04 +02:00
parent 7681c60f6b
commit cd684460ff
3 changed files with 1 additions and 3 deletions

View File

@ -508,7 +508,7 @@ class Categorie
include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
$interface=new Interfaces($this->db);
$result=$interface->run_triggers('CATEGORY_UNLINK',$this,$user,$langs,$conf);
if ($result < 0) { $error++; $this->errors=$interface->errors; $this->error=$this->error; }
if ($result < 0) { $error++; $this->errors=$interface->errors; }
// Fin appel triggers
if (! $error) return 1;

View File

@ -97,7 +97,6 @@ class FormFile
$max=$conf->global->MAIN_UPLOAD_DOC; // En Kb
$maxphp=@ini_get('upload_max_filesize'); // En inconnu
if (preg_match('/m$/i',$maxphp)) $maxphp=$maxphp*1024;
if (preg_match('/k$/i',$maxphp)) $maxphp=$maxphp;
// Now $max and $maxphp are in Kb
if ($maxphp > 0) $max=min($max,$maxphp);

View File

@ -290,7 +290,6 @@ abstract class ActionsCardCommon
}
else
{
$this->object->id = $this->object->id;
$reload = 0;
$this->errors = $this->object->errors;
$action = "edit";