Changeset 15 for trunk/bp_messages.php
- Timestamp:
- 04/07/2008 09:35:36 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/bp_messages.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp_messages.php
r14 r15 26 26 27 27 $sql = "CREATE TABLE ". $table_name ." ( 28 id mediumint(9) NOT NULL AUTO_INCREMENT, 29 sender_id mediumint(9) NOT NULL, 30 recipient_id mediumint(9) NOT NULL, 28 id int(11) NOT NULL AUTO_INCREMENT, 29 sender_id int(11) NOT NULL, 30 recipient_id int(11) NOT NULL, 31 folder_id tinyint(1) NOT NULL DEFAULT 1, 31 32 subject varchar(200) NOT NULL, 32 33 message longtext NOT NULL, … … 70 71 71 72 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 72 if($wpdb->get_var("show tables like ' $table_name'") != $table_name) messages_install();73 if($wpdb->get_var("show tables like '%" . $table_name . "%'") == false) messages_install(); 73 74 } 74 75 add_action('admin_menu','messages_add_menu');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)