|
Revision 45, 407 bytes
(checked in by sven, 3 years ago)
|
dos2unix to clean line endings, set svn property eol-style native, some whitespace homogenisation
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
// Convert $parameter to an integer, see if it exists |
|---|
| 6 |
$parameter = (int) $parameter; |
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
$subscriptions = db_query("select feed_id from feed_subscriptions where user_id = $parameter"); |
|---|
| 10 |
if (sizeof($subscriptions > 0)) { |
|---|
| 11 |
foreach($subscriptions as $subscription) { |
|---|
| 12 |
run("rss:update",$subscription->feed_id); |
|---|
| 13 |
} |
|---|
| 14 |
} |
|---|
| 15 |
|
|---|
| 16 |
?> |
|---|