Changeset 607
- Timestamp:
- 12/24/08 02:02:45 (14 years ago)
- google:author:
- appears
- Location:
- plugins/contribute
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/contribute/_define.php
r605 r607 26 26 /* Description*/ "Allow visitors to contribute to your blog", 27 27 /* Author */ "Moe (http://gniark.net/)", 28 /* Version */ '1.0-alpha4 ',28 /* Version */ '1.0-alpha4.1', 29 29 /* Permissions */ 'admin' 30 30 ); -
plugins/contribute/_public.php
r605 r607 88 88 # default post 89 89 $default_post = $core->blog->settings->contribute_default_post; 90 if (is_int($default_post) && $default_post > 0)90 if (is_int($default_post) && ($default_post > 0)) 91 91 { 92 92 # get default post … … 117 117 $post->mymeta = array(); 118 118 119 if ($_ctx->contribute->mymeta->hasMeta()) 119 if (($_ctx->contribute->mymeta !== false) 120 && ($_ctx->contribute->mymeta->hasMeta())) 120 121 { 121 122 foreach ($_ctx->contribute->mymeta->getAll() as $k => $v) … … 309 310 if (!is_array($mymeta_values)) {$mymeta_values = array();} 310 311 311 if (($_ctx->contribute->mymeta->hasMeta()) 312 if (($_ctx->contribute->mymeta !== false) 313 && ($_ctx->contribute->mymeta->hasMeta()) 312 314 && ($core->blog->settings->contribute_allow_mymeta === true)) 313 315 { … … 458 460 459 461 # My Meta 460 if (($_ctx->contribute->mymeta->hasMeta()) 462 if (($_ctx->contribute->mymeta !== false) 463 && ($_ctx->contribute->mymeta->hasMeta()) 461 464 && ($core->blog->settings->contribute_allow_mymeta === true)) 462 465 { -
plugins/contribute/lib.contribute.php
r605 r607 42 42 $array = array(); 43 43 44 if ( !$mymeta->hasMeta())44 if (($mymeta === false) || (!$mymeta->hasMeta())) 45 45 { 46 46 return(staticRecord::newFromArray($array));
Note: See TracChangeset
for help on using the changeset viewer.