[vhffs-dev] [399] Fixe function get_lang in User.pm |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 399
Author: misric
Date: 2007-01-15 02:20:34 +0000 (Mon, 15 Jan 2007)
Log Message:
-----------
Fixe function get_lang in User.pm
Modified Paths:
--------------
branches/vhffs_4.1/vhffs-api/src/Vhffs/User.pm
Modified: branches/vhffs_4.1/vhffs-api/src/Vhffs/User.pm
===================================================================
--- branches/vhffs_4.1/vhffs-api/src/Vhffs/User.pm 2007-01-14 17:32:18 UTC (rev 398)
+++ branches/vhffs_4.1/vhffs-api/src/Vhffs/User.pm 2007-01-15 02:20:34 UTC (rev 399)
@@ -679,10 +679,9 @@
sub get_lang
{
my $self = shift;
-
- my $query = "SELECT language FROM vhffs_panel_user_prefs WHERE uid='".$self->get_uid."'";
- my $request = $self->{'db'}->{'DB_READ'}->prepare( $query );
- my $rows = $request->execute;
+ my $request;
+ $request = $self->{'db'}->prepare("SELECT language FROM vhffs_panel_user_prefs WHERE uid='".$self->get_uid."'");
+ my $rows = $request->execute();
if( $rows == 0 )
{