Project

General

Profile

« Previous | Next » 

Revision 943

Added by doc almost 16 years ago

added update of search table missing in Changeset 941

View differences:

upgrade-script.php
176 176

  
177 177

  
178 178
/**********************************************************
179
 *  - Update search no results database filed to create
180
 *  valid XHTML if search is empty
181
 */
182
echo "<br />Updating database field `no_results` of search table: ";
183
$search_no_results = addslashes('<tr><td><p>[TEXT_NO_RESULTS]</p></td></tr>');
184
$sql = "UPDATE `" . TABLE_PREFIX . "search` SET `value` = '$search_no_results' WHERE `name`= 'no_results'";
185
$database->query($sql);
186
echo ($database->query($sql)) ? " $OK<br />" : " $FAIL<br />";
187

  
188
/**********************************************************
179 189
 *  - End of upgrade script
180 190
 */
181 191
echo '<p style="font-size:120%;"><strong>Congratulations: The upgrade script is finished ...</strong></p>';

Also available in: Unified diff