mod_cloud_notify: Don't use deprecated table.getn
authortmolitor <thilo@eightysoft.de>
Fri, 01 Jun 2018 17:54:07 +0200
changeset 3082 6b860de18a53
parent 3081 f16b021e8a61
child 3083 2a918a8c47db
mod_cloud_notify: Don't use deprecated table.getn
mod_cloud_notify/mod_cloud_notify.lua
--- a/mod_cloud_notify/mod_cloud_notify.lua	Wed May 30 19:14:01 2018 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Fri Jun 01 17:54:07 2018 +0200
@@ -59,7 +59,7 @@
 		key = t.__orderedIndex[1]
 	else
 		-- fetch the next value
-		for i = 1,table.getn(t.__orderedIndex) do
+		for i = 1, #t.__orderedIndex do
 			if t.__orderedIndex[i] == state then
 				key = t.__orderedIndex[i+1]
 			end