Changeset 2356 for branches/release-38/php/lib/function.mtauthoruserpic.php
- Timestamp:
- 05/16/08 07:45:14 (19 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-38/php/lib/function.mtauthoruserpic.php
r1174 r2356 8 8 function smarty_function_mtauthoruserpic($args, &$ctx) { 9 9 $author = $ctx->stash('author'); 10 if (!$author) return ''; 10 if (empty($author)) { 11 $entry = $ctx->stash('entry'); 12 if (!empty($entry)) { 13 $author = $ctx->mt->db->fetch_author($entry['entry_author_id']); 14 } 15 } 16 if (empty($author)) { 17 return $ctx->error("No author available"); 18 } 11 19 12 20 $asset_id = isset($author['author_userpic_asset_id']) ? $author['author_userpic_asset_id'] : 0;
