mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01:00
Allow domains to be added by hitting return (add them as exact domains).
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -78,11 +78,10 @@ function add_to_table($db, $table, $domains, $wildcardstyle=false, $returnnum=fa
|
||||
// Return early if we failed to prepare the SQLite statement
|
||||
if(!$stmt)
|
||||
{
|
||||
echo "Failed to prepare statement for ".$table." table.";
|
||||
if($returnnum)
|
||||
return 0;
|
||||
else
|
||||
return "Error, added: 0";
|
||||
return "Error: Failed to prepare statement for ".$table." table.";
|
||||
}
|
||||
|
||||
// Loop over domains and inject the lines into the database
|
||||
|
||||
Reference in New Issue
Block a user