Changeset

7755:19aa9b1ef9e8

mod_storage_sql: Don't say 'Unknown command' if no command was given (fixes attempt to concatenate nil)
author Kim Alvefur <zash@zash.se>
date Thu, 01 Dec 2016 10:02:01 +0100 (2016-12-01)
parents 7754:560d2e758d4c
children 7756:274d0e57cc60
files plugins/mod_storage_sql.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Thu Dec 01 06:47:03 2016 +0100
+++ b/plugins/mod_storage_sql.lua	Thu Dec 01 10:02:01 2016 +0100
@@ -504,6 +504,8 @@
 			upgrade_table(params, true);
 		end
 		print("All done!");
+	elseif command then
+		print("Unknown command: "..command);
 	else
 		print("Unknown command: "..command);
 	end