Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 1270 → Rev 1271

/branches/v5.12-baouque/services/modules/0.1/coste/Textes.php
147,7 → 147,7
// de toolkits
$req = self::getCosteInfo($params, $db);
$res = $db->recupererTous($req);
$err = mysql_error();
$err = mysqli_error();
if (!$res && $err) {
// http_response_code(400);
// if(defined('DEBUG') && DEBUG) header("X-Debug: $req");
433,7 → 433,9
 
// on filtre les NULL, FALSE et '', mais pas les 0, d'où le callback()
// TODO: PHP-5.3
$p = array_filter($p, create_function('$a','return !in_array($a, array("",false,null),true);'));
$p = array_filter($p, function ($a) {
return !in_array($a, array("", false, null), true);
});
$p = array_merge(self::$default_params, $p);
 
return $p;
/branches/v5.12-baouque/services/bibliotheque/JSON.php
130,7 → 130,7
* bubble up with an error, so all return values
* from encode() should be checked with isError()
*/
function Services_JSON($use = 0)
function __construct($use = 0)
{
$this->use = $use;
}
780,7 → 780,7
 
class Services_JSON_Error extends PEAR_Error
{
function Services_JSON_Error($message = 'unknown error', $code = null,
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
parent::PEAR_Error($message, $code, $mode, $options, $userinfo);
794,7 → 794,7
*/
class Services_JSON_Error
{
function Services_JSON_Error($message = 'unknown error', $code = null,
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{