// User id should not be zero
if (!isValidUserId(getCurrentUserId())) {
// Should be always valid
- debug_report_bug(__FUNCTION__, __LINE__, 'User id is zero.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Current user id is invalid: ' . getCurrentUserId());
} // END - if
// Init the user
// User id should not be zero
if (!isValidUserId(getCurrentUserId())) {
// Should be always valid
- debug_report_bug(__FUNCTION__, __LINE__, 'User id is zero.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Current user id is invalid: ' . getCurrentUserId());
} // END - if
// Return the value
// Is the current userid valid?
if (!isValidUserId($userid)) {
// Should be always valid
- debug_report_bug(__FUNCTION__, __LINE__, 'User id is invalid.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Current user id is invalid: ' . $userid);
} // END - if
// Get the whole array if found