Changeset 206733
- Timestamp:
- 02/16/2010 09:14:37 PM (16 years ago)
- File:
-
- 1 edited
-
lifestream/trunk/inc/core.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lifestream/trunk/inc/core.php
r206707 r206733 1726 1726 1727 1727 $results = $wpdb->get_results($wpdb->prepare("SELECT `ID` FROM `".$wpdb->prefix."posts` WHERE `post_type` = 'page' AND `post_content` LIKE '%%[lifestream]%%' AND `post_author` = %d AND `post_status` != 'trash' LIMIT 2", $userdata->ID)); 1728 if (count($results) == 2) 1729 { 1730 // Now we're in trouble 1731 } 1732 elseif (count($results) == 1) 1728 if (count($results) == 1) 1733 1729 { 1734 1730 $this->update_option('page_id', $results[0]->ID); 1735 1731 } 1736 else 1732 elseif (!$results) 1737 1733 { 1738 1734 $post = array(
Note: See TracChangeset
for help on using the changeset viewer.