Jump to content

Error when adding schedule (days of week)


steelerboi

Recommended Posts

After applying the latest beta update, I noticed an error after adding a schedule via the admin centre:

Warning: implode() [function.implode]: Invalid arguments passed in /home/plusair/public_html/admin/modules/Operations/Operations.php on line 514

The fix to this (as identified by a dev friend of mine) is to the input sanitisation in Vars.class.php

public static function cleaned(&$V)
{
	if(is_array($V)) {
		foreach($V as $k => $val) {
			$V[$k] = self::cleaned($val);
		}

		return $V;
	}

	return htmlspecialchars(addslashes(stripslashes($V)));
}

Hope this helps anybody suffering from the same error.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...