Plugin Directory

Changeset 206733


Ignore:
Timestamp:
02/16/2010 09:14:37 PM (16 years ago)
Author:
zeeg
Message:

Trying to solve duplicate page issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lifestream/trunk/inc/core.php

    r206707 r206733  
    17261726           
    17271727            $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)
    17331729            {
    17341730                $this->update_option('page_id', $results[0]->ID);
    17351731            }
    1736             else
     1732            elseif (!$results)
    17371733            {
    17381734                $post = array(
Note: See TracChangeset for help on using the changeset viewer.