if (is_bool($response))
return false;
-
+
if (property_exists($response, 'tkl'))
return $response->tkl;
return FALSE;
return $response->tkl;
}
- throw new Exception('Invalid JSON Response from UnrealIRCd RPC.');
+ return false; // not found
}
}
if (is_bool($response))
return false;
-
+
if (property_exists($response, 'tkl'))
return $response->tkl;
return FALSE;
return $response->tkl;
}
- throw new Exception('Invalid JSON Response from UnrealIRCd RPC.');
+ return false; // didn't exist
}
}
if (is_bool($response))
return false;
-
+
if (property_exists($response, 'tkl'))
return $response->tkl;
return FALSE;
return $response->tkl;
}
- throw new Exception('Invalid JSON Response from UnrealIRCd RPC.');
+ return false; // not found
}
}
return $response->client;
}
- throw new Exception('Invalid JSON Response from UnrealIRCd RPC.');
+ return false; // not found
}
/**