[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1653] fix more PEAR errors
From: |
Matt Lee |
Subject: |
[Librefm-commits] [1653] fix more PEAR errors |
Date: |
Sat, 16 May 2009 04:49:06 +0000 |
Revision: 1653
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1653
Author: mattl
Date: 2009-05-16 04:49:05 +0000 (Sat, 16 May 2009)
Log Message:
-----------
fix more PEAR errors
Modified Paths:
--------------
branches/stable/nixtape/album.php
branches/stable/nixtape/artist.php
branches/stable/nixtape/edit_group.php
branches/stable/nixtape/explore.php
branches/stable/nixtape/group.php
branches/stable/nixtape/listen.php
branches/stable/nixtape/track.php
Modified: branches/stable/nixtape/album.php
===================================================================
--- branches/stable/nixtape/album.php 2009-05-16 04:45:41 UTC (rev 1652)
+++ branches/stable/nixtape/album.php 2009-05-16 04:49:05 UTC (rev 1653)
@@ -32,7 +32,7 @@
$smarty->assign('artist', $artist);
$smarty->assign('album', $album);
$aAlbumTracks = $album->getTracks();
-if (!PEAR::isError($aAlbumTracks )) {
+if (!$aAlbumTracks ) {
$smarty->assign('tracks', $aAlbumTracks);
}
Modified: branches/stable/nixtape/artist.php
===================================================================
--- branches/stable/nixtape/artist.php 2009-05-16 04:45:41 UTC (rev 1652)
+++ branches/stable/nixtape/artist.php 2009-05-16 04:49:05 UTC (rev 1653)
@@ -33,12 +33,12 @@
$smarty->assign('bio_summary', $artist->bio_summary);
$aTagCloud = TagCloud::GenerateTagCloud(TagCloud::scrobblesTable(), 'artist');
-if (!PEAR::isError ($aTagCloud)) {
+if (!$aTagCloud) {
$smarty->assign('tagcloud', $aTagCloud);
}
$aArtistAlbums = $artist->getAlbums();
-if (!PEAR::isError($aArtistAlbums)) {
+if (!$aArtistAlbums) {
$smarty->assign('albums', $aArtistAlbums);
}
Modified: branches/stable/nixtape/edit_group.php
===================================================================
--- branches/stable/nixtape/edit_group.php 2009-05-16 04:45:41 UTC (rev
1652)
+++ branches/stable/nixtape/edit_group.php 2009-05-16 04:49:05 UTC (rev
1653)
@@ -44,7 +44,7 @@
header('Location: ' . $base_url .
'/edit_group.php?group=' . $_REQUEST['new']);
exit();
}
- elseif (PEAR::isError($result))
+ elseif (!$result)
{
$smarty->assign('error', 'Error!');
$smarty->assign('details', $result->getMessage());
@@ -56,7 +56,7 @@
{
$smarty->assign('newform', true);
$aTagCloud =
TagCloud::GenerateTagCloud(TagCloud::scrobblesTable(), 'artist');
- if (!PEAR::isError ($aTagCloud))
+ if (!$aTagCloud)
{
$smarty->assign('tagcloud', $aTagCloud);
}
@@ -164,7 +164,7 @@
$smarty->assign('errors', $errors);
$smarty->assign('newform', false);
$aUserTagCloud = $group->tagCloudData();
- if (!PEAR::isError ($aTagCloud))
+ if (!$aTagCloud)
{
$smarty->assign('tagcloud', $aTagCloud);
}
Modified: branches/stable/nixtape/explore.php
===================================================================
--- branches/stable/nixtape/explore.php 2009-05-16 04:45:41 UTC (rev 1652)
+++ branches/stable/nixtape/explore.php 2009-05-16 04:49:05 UTC (rev 1653)
@@ -28,12 +28,12 @@
// This should be contextual based on the mode= parameter?
$aTagCloud = TagCloud::GenerateTagCloud(TagCloud::scrobblesTable(), 'artist');
-if (!PEAR::isError ($aTagCloud)) {
+if (!$aTagCloud) {
$smarty->assign('tagcloud', $aTagCloud);
}
$aTopArtists = Server::getTopArtists(20);
-if (!PEAR::isError ($aTopArtists)) {
+if (!$aTopArtists) {
$smarty->assign('topartists', $aTopArtists);
}
$smarty->assign('explore', true);
Modified: branches/stable/nixtape/group.php
===================================================================
--- branches/stable/nixtape/group.php 2009-05-16 04:45:41 UTC (rev 1652)
+++ branches/stable/nixtape/group.php 2009-05-16 04:49:05 UTC (rev 1653)
@@ -37,7 +37,7 @@
)
));
$aTagCloud = TagCloud::GenerateTagCloud(TagCloud::scrobblesTable(),
'artist');
- if (!PEAR::isError ($aTagCloud))
+ if (!$aTagCloud)
{
$smarty->assign('tagcloud', $aTagCloud);
}
@@ -69,7 +69,7 @@
$smarty->assign('avatar', $group->getAvatar());
$aUserTagCloud = $group->tagCloudData();
- if (!PEAR::isError ($aUserTagCloud)) {
+ if (!$aUserTagCloud) {
$smarty->assign('group_tagcloud',$aUserTagCloud);
}
Modified: branches/stable/nixtape/listen.php
===================================================================
--- branches/stable/nixtape/listen.php 2009-05-16 04:45:41 UTC (rev 1652)
+++ branches/stable/nixtape/listen.php 2009-05-16 04:49:05 UTC (rev 1653)
@@ -24,7 +24,7 @@
require_once('data/TagCloud.php');
$aTagCloud = TagCloud::GenerateTagCloud(TagCloud::scrobblesTable(), 'artist');
-if (!PEAR::isError ($aTagCloud)) {
+if (!$aTagCloud) {
$smarty->assign('tagcloud', $aTagCloud);
}
Modified: branches/stable/nixtape/track.php
===================================================================
--- branches/stable/nixtape/track.php 2009-05-16 04:45:41 UTC (rev 1652)
+++ branches/stable/nixtape/track.php 2009-05-16 04:49:05 UTC (rev 1653)
@@ -36,7 +36,7 @@
// no idea how this would be track-relevant
$aTagCloud = TagCloud::GenerateTagCloud(TagCloud::scrobblesTable(), 'artist');
-if (!PEAR::isError ($aTagCloud)) {
+if (!$aTagCloud) {
$smarty->assign('tagcloud', $aTagCloud);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1653] fix more PEAR errors,
Matt Lee <=