Changeset 1873 for branches/release-34/lib/MT/CMS/Tag.pm
- Timestamp:
- 04/13/08 04:41:46 (2 years ago)
- Files:
-
- 1 modified
-
branches/release-34/lib/MT/CMS/Tag.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-34/lib/MT/CMS/Tag.pm
r1823 r1873 110 110 if ( $tag && $blog_id ) { 111 111 my $ot_class = $app->model('objecttag'); 112 my $ count = $ot_class->count(112 my $exist = $ot_class->exist( 113 113 { 114 114 object_datasource => $class->datasource, … … 117 117 } 118 118 ); 119 undef $tag unless $ count;119 undef $tag unless $exist; 120 120 } 121 121 return $app->json_result( { exists => $tag ? 'true' : 'false' } );
