Changeset 3299 for sandbox/components/Textcube.Data.Post.php
- Timestamp:
- 05/21/07 01:56:13 (20 months ago)
- Files:
-
- 1 modified
-
sandbox/components/Textcube.Data.Post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sandbox/components/Textcube.Data.Post.php
r3109 r3299 89 89 } 90 90 91 function add( ) {91 function add($userid) { 92 92 global $database, $owner; 93 93 if (isset($this->id) && !Validator::number($this->id, 1)) … … 141 141 } 142 142 } 143 $TN = mysql_fetch_array(mysql_query("SELECT userid FROM {$database['prefix']}Users WHERE loginid='$userid'")); 144 mysql_query("INSERT INTO {$database['prefix']}TeamEntryRelations VALUES('$owner', '$this->id', '$TN[userid]')"); 143 145 return true; 144 146 }
