Add configuration check. Need 'server', 'port', 'user' and 'password' to be defined (not valid, just defined).
This commit is contained in:
parent
f175512748
commit
1b39f89b96
|
@ -442,11 +442,17 @@ class XmppPlugin extends ImPlugin
|
||||||
*/
|
*/
|
||||||
function onGetValidDaemons($daemons)
|
function onGetValidDaemons($daemons)
|
||||||
{
|
{
|
||||||
array_push(
|
if( isset($this->server) &&
|
||||||
$daemons,
|
isset($this->port) &&
|
||||||
INSTALLDIR
|
isset($this->user) &&
|
||||||
. '/scripts/imdaemon.php'
|
isset($this->password) ){
|
||||||
);
|
|
||||||
|
array_push(
|
||||||
|
$daemons,
|
||||||
|
INSTALLDIR
|
||||||
|
. '/scripts/imdaemon.php'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user