Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 1272 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1272 Rev 1300
Line 145... Line 145...
145
 
145
 
146
		// XXX: temporaires, passage de $db aux fonctions
146
		// XXX: temporaires, passage de $db aux fonctions
147
		// de toolkits
147
		// de toolkits
148
		$req = self::getCosteInfo($params, $db);
148
		$req = self::getCosteInfo($params, $db);
149
		$res = $db->recupererTous($req);
149
		$res = $db->recupererTous($req);
150
		$err = mysqli_error();
150
		$err = @mysqli_error();
151
		if (!$res && $err) {
151
		if (!$res && $err) {
152
			// http_response_code(400);
152
			// http_response_code(400);
153
			// if(defined('DEBUG') && DEBUG) header("X-Debug: $req");
153
			// if(defined('DEBUG') && DEBUG) header("X-Debug: $req");
154
			throw new Exception('not found', 400);
154
			throw new Exception('not found', 400);