Commit 223ca102 authored by Ad Schellevis's avatar Ad Schellevis

small fix get_notices_xmlrpc

parent 90bb8714
...@@ -49,11 +49,15 @@ function xmlrpc_publishable_legacy() ...@@ -49,11 +49,15 @@ function xmlrpc_publishable_legacy()
* @param $params * @param $params
* @return mixed * @return mixed
*/ */
function get_notices_xmlrpc($category) function get_notices_xmlrpc($category=null)
{ {
if (!function_exists("get_notices")) { if (!function_exists("get_notices")) {
require_once("notices.inc"); require_once("notices.inc");
} }
return get_notices($category); if ($category==null) {
return get_notices();
} else {
return get_notices($category);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment