Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1481 Rev 1487
Line 450... Line 450...
450
							   self::sqlAddIfNullPourConcat($champs_n),
450
							   self::sqlAddIfNullPourConcat($champs_n),
451
							   self::sqlAddIfNullPourConcat($champs_p),
451
							   self::sqlAddIfNullPourConcat($champs_p),
452
							   $db->proteger("%".$val."%"));
452
							   $db->proteger("%".$val."%"));
453
		}
453
		}
454
		else {
454
		else {
455
			$where[] = sprintf('CONCAT(%1$s,%2$s) LIKE %3$s AND CONCAT(%1$s,%2$s) LIKE %4$s ',
455
			$where[] = sprintf('(CONCAT(%1$s,%2$s) LIKE %3$s AND CONCAT(%1$s,%2$s) LIKE %4$s)',
456
							   self::sqlAddIfNullPourConcat($champs_n),
456
							   self::sqlAddIfNullPourConcat($champs_n),
457
							   self::sqlAddIfNullPourConcat($champs_p),
457
							   self::sqlAddIfNullPourConcat($champs_p),
458
							   $db->proteger("%" . $a . "%"), $db->proteger("%" . $b . "%"));
458
							   $db->proteger("%" . $a . "%"), $db->proteger("%" . $b . "%"));
459
		}
459
		}
460
	}
460
	}