If the array is empty and we reach the foreach loop this will cause a php notice/warning.

Jasmine Hassan <notifications@github.com> schrieb:

>In root/includes/acp/acp_mods.php:
>
>> 			if ($row = $db->sql_fetchrow($result)) > 			{ > 				$dest_inherits = $row['template_inherit_path']; > 			} > 			$db->sql_freeresult($result); > > -			if (!empty($actions['EDITS'])) 
>
>because if the array is empty, the foreach loop would have no iterations to do anyway. Basic simplification.
>
>—
>Reply to this email directly or view it on GitHub. 
>
>￼