Skip to content

Commit

Permalink
42-error-viewing-first
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Jun 18, 2009
1 parent 25d8c45 commit d5f5101
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db/boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@
if ( 1 <= preg_match_all( $pattern, $request->uri, $found )) {
$uri = $request->uri;
$tags[] = $found;
if (!$db->table_exists('blogs')) {
$Blog =& $db->model('Blog');
$Blog->save();
}
$sql = "SELECT prefix FROM blogs WHERE nickname LIKE '".$db->escape_string($tags[0][2][0])."'";
$result = $db->get_result( $sql );
if ( $db->num_rows($result) == 1 ) {
Expand Down

0 comments on commit d5f5101

Please sign in to comment.