Permalink
Browse files

Fixing undefined indexes

  • Loading branch information...
daris committed Oct 1, 2011
1 parent ece5714 commit fcdbeceaae92569b2a31f2a2a2b98891dbaf65dc
Showing with 7 additions and 5 deletions.
  1. +1 −1 MyBB/_info.php
  2. +1 −1 MyBB/end.php
  3. +1 −1 MyBB/forums.php
  4. +3 −1 readme.txt
  5. +1 −1 settings.php
View
@@ -3,5 +3,5 @@
$info = array(
'version' => 'MyBB 1.x',
'note' => 'Passwords not converted.',
'update' => '2010-08-24',
'update' => '2011-10-01',
);
View
@@ -3,7 +3,7 @@
// Get phpBB config
echo "\n<br>Updating FluxBB settings"; flush();
$phpconfig = array();
$result = $fdb->query('SELECT name, value FROM '.$fdb->prefix.$_SESSION['phpnuke'].'settings') or myerror('Unable to get forum info', __FILE__, __LINE__, $fdb->error());
$result = $fdb->query('SELECT name, value FROM '.$fdb->prefix.'settings') or myerror('Unable to get forum info', __FILE__, __LINE__, $fdb->error());
while (list($name, $var) = $fdb->fetch_row($result))
$phpconfig[$name] = $var;
View
@@ -6,7 +6,7 @@
$categories[] = $cur_cat['id'];
// Fetch forum info
$result = $fdb->query('SELECT * FROM '.$fdb->prefix.$_SESSION['phpnuke'].'forums WHERE fid>'.$start.' AND type=\'f\' ORDER BY fid LIMIT '.$_SESSION['limit']) or myerror('phpBB: Unable to get table: forums', __FILE__, __LINE__, $fdb->error());
$result = $fdb->query('SELECT * FROM '.$fdb->prefix.'forums WHERE fid>'.$start.' AND type=\'f\' ORDER BY fid LIMIT '.$_SESSION['limit']) or myerror('Unable to get table: forums', __FILE__, __LINE__, $fdb->error());
$last_id = -1;
while($ob = $fdb->fetch_assoc($result))
{
View
@@ -1,5 +1,7 @@
##
## Author: David 'Chacmool' Djurb�ck ( chacmool@spray.se )
## Author: daris (daris91+fluxbb@gmail.com)
##
## Orginal author: David 'Chacmool' Djurb�ck ( chacmool@spray.se )
##
## Affected tables: All FluxBB tables are dumped.
##
View
@@ -53,7 +53,7 @@
{
if (substr($file, 0, 1) != '.' && @$dir = opendir('./'.$file))
{
$selected = $_SESSION['forum'] == $file ? ' selected' : '';
$selected = (isset($_SESSION['forum']) && $_SESSION['forum'] == $file) ? ' selected' : '';
echo "\t\t\t\t\t".'<option value="'.$file.'"'.$selected.'>'.$file.'</option>'."\n";
closedir($dir);
}

0 comments on commit fcdbece

Please sign in to comment.