Subversion Repositories eFlore/Applications.cel

Rev

Rev 1840 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1840 Rev 1879
Line 87... Line 87...
87
			$resultat = $this->bdd->exec($requete);
87
			$resultat = $this->bdd->exec($requete);
88
			if ($resultat === false) {
88
			if ($resultat === false) {
89
				$this->debug[] = "La requête a échoué : $requete";
89
				$this->debug[] = "La requête a échoué : $requete";
90
			}
90
			}
91
		} catch (PDOException $e) {
91
		} catch (PDOException $e) {
92
			$message = sprintf($this->getTxt('sql_erreur_requete'), $e->getFile(), $e->getLine(), $e->getMessage(), $requete);
92
			$message = "Fichier : {$e->getFile()} \nLigne : {$e->getLine()} \nMessage : {$e->getMessage()} \nRequête : $requete";
93
			$code = E_USER_ERROR;
-
 
94
			throw new Exception($message);
93
			throw new Exception($message);
95
		}
94
		}
96
		return $resultat;
95
		return $resultat;
97
	}
96
	}