X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpluginqueuehandler.php;h=dcd07d7208800bbf1fe2e907bc3ce0e5e85e4a8a;hb=7220b3ddd4a32b947e851c946cb6ad6146bebf7d;hp=9653ccad42454f3896a34c26e5d49ae53e3adda9;hpb=ef3b849db05ff6ad4b9e97b38a82242a710519d1;p=quix0rs-gnu-social.git diff --git a/lib/pluginqueuehandler.php b/lib/pluginqueuehandler.php index 9653ccad42..dcd07d7208 100644 --- a/lib/pluginqueuehandler.php +++ b/lib/pluginqueuehandler.php @@ -17,9 +17,7 @@ * along with this program. If not, see . */ -if (!defined('STATUSNET') && !defined('LACONICA')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } /** * Queue handler for letting plugins handle stuff. @@ -44,7 +42,12 @@ class PluginQueueHandler extends QueueHandler function handle($notice) { - Event::handle('HandleQueuedNotice', array(&$notice)); + try { + Event::handle('HandleQueuedNotice', array(&$notice)); + } catch (NoProfileException $unp) { + // We can't do anything about this, so just skip + return true; + } return true; } }