Project

General

Profile

« Previous | Next » 

Revision 08d93848

Added by Cyrill B over 12 years ago

Fix: Invert if condition

View differences:

etc/inc/captiveportal.inc
1236 1236
	$DB = captiveportal_opendb();
1237 1237
	if ($DB) {
1238 1238
		sqlite_exec($DB, "BEGIN");
1239
		if (empty($query))
1239
		if (!empty($query))
1240 1240
			$cpdb = @sqlite_array_query($DB, "SELECT * FROM captiveportal {$query}", SQLITE_NUM);
1241 1241
		else {
1242 1242
			$response = @sqlite_unbuffered_query($DB, "SELECT * FROM captiveportal", SQLITE_NUM);

Also available in: Unified diff