- $data['cat'] = '{--_CATEGORY_NONE--}';
- } elseif (isValidId($cid)) {
- // Lookup the category in database
- $result = sqlQueryEscaped('SELECT `cat` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1',
- array(bigintval($cid)), __FUNCTION__, __LINE__);
- if (sqlNumRows($result) == 1) {
- // Category found... :-)
- $data = sqlFetchArray($result);
- } // END - if