$localAbc = array_diff($GLOBALS['_abc'], $exclude);
// $localAbc must have at least 10 entries
- assert(count($localAbc) >= 10, 'localAbc()=' . count($localAbc) . ' is to small.');
+ assert(count($localAbc) >= 10);
// Start creating password
$password = '';
} // END - if
// Make sure entries is not bool, then something went wrong
- assert(!is_bool($entries), 'entries[]=bool which is not expected.');
+ assert(!is_bool($entries));
} elseif (!empty($filterFunctions[$search])) {
// Debug mode enabled?
if (isDebugModeEnabled()) {
} // END - if
// Make sure entries is not bool, then something went wrong
- assert(!is_bool($entries), 'entries[]=bool which is not expected.');
+ assert(!is_bool($entries));
}
// Return value
// Delete rows by given id numbers
function memberDeleteEntriesConfirm ($tableName, $columns = array(), $filterFunctions = array(), $extraValues = array(), $deleteNow = array(FALSE), $idColumn = array('id'), $userIdColumn = array('userid'), $rawUserId = array('userid'), $cacheFiles = array(), $content = array()) {
// Do this only for members
- assert(isMember(), 'isMember()=false which is not expected.');
+ assert(isMember());
// $tableName must be an array
if ((!is_array($tableName)) || (count($tableName) != 1)) {
// @TODO cacheFiles is not yet supported
function memberListBuilder ($listType, $tableName, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $rawUserId = array('userid'), $content = array()) {
// Do this only for logged in member
- assert(isMember(), 'isMember()=false which is not expected.');
+ assert(isMember());
// Call inner (general) function
doGenericListBuilder('member', $listType, $tableName, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $rawUserId, $content);
// "Getter" for an array from given one but only one index of it
function getArrayFromArrayIndex ($array, $key) {
// Some simple validation
- assert(isset($array[0][$key]), 'array[0][' . $key . '] is not set.');
+ assert(isset($array[0][$key]));
// Init new array
$newArray = array();