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:
DL6ER
2019-08-27 17:19:05 +02:00
parent e66d0c4a74
commit 4743228a86
3 changed files with 4 additions and 5 deletions

View File

@@ -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