/[drupal]/contributions/modules/mysite/mysite.module
ViewVC logotype

Diff of /contributions/modules/mysite/mysite.module

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

revision 1.97, Sun Apr 27 18:47:05 2008 UTC revision 1.98, Wed Oct 1 14:01:37 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: mysite.module,v 1.96 2008/04/27 17:34:47 agentken Exp $  // $Id: mysite.module,v 1.97 2008/04/27 18:47:05 agentken Exp $
3    
4    
5  /**  /**
# Line 1106  function mysite_content($uid = NULL, $pa Line 1106  function mysite_content($uid = NULL, $pa
1106      // show the add content forms      // show the add content forms
1107      if (!empty($only)) {      if (!empty($only)) {
1108        $max = variable_get('mysite_items', 10);        $max = variable_get('mysite_items', 10);
1109        $result = db_fetch_object(db_query("SELECT COUNT(mid) as count FROM {mysite_data} WHERE uid = %d", $owner->uid));        $result = db_fetch_object(db_query("SELECT COUNT(mid) as count FROM {mysite_data} WHERE uid = %d AND page = %d", $owner->uid, $page));
1110        if ($result->count < $max) {        if ($result->count < $max) {
1111          $output .= mysite_content_form($owner, $edit, $only, $page);          $output .= mysite_content_form($owner, $edit, $only, $page);
1112        }        }

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98

  ViewVC Help
Powered by ViewVC 1.1.2