Version 1.55
Just tried to get phpfriendly to work. But some bugs
occur when you separate the phpfriendly-db from the db
to be edited. That's just what i found this evening,
guess there are some more bugs out of this category.
----------
Bug in file main_classes/User.php. This bug has been
spotted before without any reaction.
http://sourceforge.net/tracker/index.php?
func=detail&aid=911419&group_id=60250&atid=493560
Change this:
$sql = "SELECT * FROM " . $currenttable-
>dbtablename . " WHERE " . $currenttable->findid() . "
= '" . $primarykey . "'";
$result = $db->query($sql);
into this:
$sql = "SELECT * FROM " . $currenttable-
>dbtablename . " WHERE " . $currenttable->findid() . "
= '" . $primarykey . "'";
$regdb = $currenttable->database->constring();
$result = $regdb->query($sql);
----------
Another bug in tables/rtacontent.php
Change this:
<body>
<?php
if ($_SESSION['pfa']->validateurlvars($_GET['editid']))
echo $_SESSION['pfa']->edit->populaterta
($maindb);
else if ($_SESSION['pfa']->validateurlvars($_GET
['deleteid']))
echo $_SESSION['pfa']->erase->populaterta
($_maindb);
?>
</body>
into this:
<body>
<?php
if ($_SESSION['pfa']->validateurlvars($_GET['editid']))
echo $_SESSION['pfa']->edit->populaterta
($_SESSION['pfa']->currenttable->database);
else if ($_SESSION['pfa']->validateurlvars($_GET
['deleteid']))
echo $_SESSION['pfa']->erase->populaterta
($_SESSION['pfa']->currenttable->database);
?>
</body>