/[drupal]/contributions/modules/twitter/twitter.inc
ViewVC logotype

Diff of /contributions/modules/twitter/twitter.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3.2.12, Thu Jul 2 13:26:21 2009 UTC revision 1.3.2.13, Sat Jul 4 16:14:08 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: twitter.inc,v 1.3.2.11 2009/07/02 13:23:44 eaton Exp $  // $Id: twitter.inc,v 1.3.2.12 2009/07/02 13:26:21 eaton Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 373  function _twitter_request_failure($resul Line 373  function _twitter_request_failure($resul
373   * @see twitter_cache_status()   * @see twitter_cache_status()
374   */   */
375  function twitter_cache_account($twitter_account = array()) {  function twitter_cache_account($twitter_account = array()) {
376      // convert boolean into int since it doesn't appear to be
377      // handled correctly otherwise
378      if ($twitter_account['protected']) {
379        $twitter_account['protected'] = 1;
380      }
381      else {
382        $twitter_account['protected'] = 0;
383      }
384    
385    db_query("DELETE FROM {twitter_account} WHERE twitter_uid = %n", $twitter_account['twitter_uid']);    db_query("DELETE FROM {twitter_account} WHERE twitter_uid = %n", $twitter_account['twitter_uid']);
386    drupal_write_record('twitter_account', $twitter_account);    drupal_write_record('twitter_account', $twitter_account);
387  }  }

Legend:
Removed from v.1.3.2.12  
changed lines
  Added in v.1.3.2.13

  ViewVC Help
Powered by ViewVC 1.1.2