Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tep_not_null($value) {
- if (is_array($value)) {
- if (sizeof($value) > 0) {
- return true;
- } else {
- return false;
- }
- } else {
- if ( (is_string($value) || is_int($value)) && ($value != '') && ($value != 'NULL') && (strlen(trim($value)) > 0)) {
- return true;
- } else {
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement