#187 table prefix appended twice

closed-accepted
nobody
Database (41)
5
2013-12-01
2010-03-24
Anonymous
No

On a fresh install of Postfixadmin (no rows in SQL), creating an admin failed because table prefix is appended twice.

setup.php line 352 :
// here, a var_dump() shows that $table_domain == "prefix_domain"
db_insert($table_domain, array('domain' => 'ALL'));

functions.inc.php line 1680
function db_insert ($table, $values, $timestamp = array()) { ... }
//in this function, prefix is appended a second time line 1682.

HOW TO FIX
--------------------
See diff attached

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-03-24

    fix for admin creation in setup.php

     
  • GingerDog

    GingerDog - 2010-03-24

    Thanks for the bug report; we believe this has been fixed in subversion.

     
  • GingerDog

    GingerDog - 2010-03-24
    • status: open --> closed-accepted
     
  • GingerDog

    GingerDog - 2010-03-24

    Closed in revision 813; thank you for reporting it.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks